• 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

How to get onclick value from button which is there in hidden div?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Hi I am very new to javascript programming. i have developed one hidden div with a table which has two buttons (OK and Cancel). when i click on cancel, i am just disabling the div. when i click on OK i want to get a value of OK like true . To disable and enable the div, i developed a javascript functions.

here when i clicked on OK button, i called a function with return true statement, but when i try to get the value, i am getting undefined value.please help me on this.('');


Thank you.
Veera
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can we see the code which exhibits the problem? It's a bit demanding to make us write our own version, when you already have one, don't you agree?
 
veera veeraravi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hidden div code: which is in different file
this is in hidediv.html



i am accessing this div in different page by using javascript function in some.js page it has the


i am calling this toggle function from other man.html page in side the javascript... thi spage has one get button...in onclick of get button
i am calling fucntion name as getdown()..in this function, i am calling toggle(); with parameter.

now, i am able to get pop. when i click on ''OK" it just going off ..not getting the return value into getdown() in man.html....

so.. when i click on 'ok' in hidden div (it will popup in different page) i need to get the return value as true into current page (man.html).... this is my requirement....

Thank you...

[GDB - Added Code Tags]
 
veera veeraravi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi here i found that, when i call this toggle function from another file, it needs to wait for an event from OK or Cancel, but here this is not happening. it just enabling the div and continuing the flow. i need a help to stop the flow till it get the event from either ok or cancel. I would request you to please help me on this....


Thank you

Veera
reply
    Bookmark Topic Watch Topic
  • New Topic