Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Set TextField Value OnLoad using JavaScript

883153Aug 18 2011 — edited Aug 18 2011
hey everyone,

i really have some troubles with apex. what i want to do:
there is a pop up window where the user write a search text, click on a button and the results displays. cause the most user write the same searchtext which they see in a previous window, i want to fill the texflied with that text and click the button via code, but i have no idea how.

what i reached and tryed till now:
i transport the search text via url to the pop up window and extract the text with: window.location.href.split("SearchText:")[1]
with document.write i checked about the result and it's right, but how do i set the value from the text field with that?? And how can i submit a button after the window is loaded and the text field with the value is set? there is a "Default Value" under the Preferences of the Text Field in Apex, but javascript somehow not works, only static text.

Thank You!

Best Regards
Godric
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 15 2011
Added on Aug 18 2011
3 comments
873 views