• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Popup window for ajax

 
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
good day to all, if i need to create a popup box which allow user to enter password and after user enter password , it go check for password validation, how to we do that ? can someone please enlighten me ?

thank you
[ November 06, 2006: Message edited by: Nakata kokuyo ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your question is too vage for a serious answer. What kind of "popup box"? A new window? A floating div? An IE-only modal dialog?
[ November 01, 2006: Message edited by: Bear Bibeault ]
 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry, Bear Bibeault , i make confuse on it , it suppose a new popup windows, mind to guide me how do i use ajax in popup window, thank you
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried a basic tutorial on Ajax?

http://developer.apple.com/internet/webcontent/xmlhttpreq.html

Eric
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A popup window is just like any other page so there are myriad ways to use Ajax within it. Again, what specific problem are you trying to solve?
 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi bear,

i have a page.jsp, this page have a checkbox, when tick on checkbox, it prompt a popup window and this popup window allow user enter password in order to further proceed, if popup window enter wrong password, it should display error message in popup window, if correct password , it will close the popup window and checkbox ticked

the popup window is construct as follow :




when i enter correct password or incorrect password , it doesn't prompt the error message but does return the whole xml file and replaced the popup window, can i know which part i have done wrong ?

below is part of action



thank you for guidance

[ November 06, 2006: Message edited by: Nakata kokuyo ]

[ November 06, 2006: Message edited by: Nakata kokuyo ]

[ November 06, 2006: Message edited by: Nakata kokuyo ]

[ November 06, 2006: Message edited by: Nakata kokuyo ]
[ November 07, 2006: Message edited by: Nakata kokuyo ]
 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i finally checkout that function initRequest(url) is not work right after i change to <button> , previously, i'm using image , so it actually called the action but not ajax function

may be it cause by ajax.request is not create, but i'm not sure how to further debug it ? can someone give me some tips ?
[ November 07, 2006: Message edited by: Nakata kokuyo ]
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Nakata kokuyo:
is not work right after i change to <button> rather than <image>



I would concentrate on figuring out why the button code isn't working.
 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry for confusing , bear , i put it in wrong way to express my problem, the button is work but not image , cause when using image , it will active the action "measure_checkpassword"
 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all, the problem solved as i make a stupid mistake where i didn't import the prototype.js source properly
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic