user1065490
user1065490

Reputation: 305

How to load the page as popup dialog without specifying "data-rel" in the caller link

Hi i'm new to Jquery mobile,have some servlet which evaluates username and password from login.html page as,

if(un.equals("user1") && pd.equals("password1")){
RequestDispatcher rd=request.getRequestDispatcher("welcome.html"); rd.forward(request, response);} else { RequestDispatcher rd=request.getRequestDispatcher("loginfailed.html"); rd.forward(request, response);} }
i

what i'm trying is when login fails loginfailed.html should open as a popup dialog showing login failure notice example here. Pls help me to do this..

Upvotes: 0

Views: 1450

Answers (1)

servarevitas3
servarevitas3

Reputation: 483

I've been using this:

http://dev.jtsage.com/jQM-SimpleDialog/

Much easier to open from within javascript than the default jquery-mobile dialog, plus it looks like a dialog in that it does not take up the whole page.

Upvotes: 1

Related Questions