This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Using a variable in the src attribute of frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Using a variable in the src attribute of frame" Watch "Using a variable in the src attribute of frame" New topic
Author

Using a variable in the src attribute of frame

john sal
Ranch Hand

Joined: Jul 30, 2010
Posts: 92
Using a variable in the src attribute of frame

The opening page link is like

<a href="abc.html?name=test.html">

now this abc.htm page contains a html frame.

Now i want to get the value of name field from the request and want to pass it in the src attribute of a frame


now i want to pass this nameId to the src attribute of frame

<frameset rows="..
<frame src=..
<frame src= nameId />
</frameset>

however when i am using the nameId as a value of src parameter of frame it is not working. Can someone let me know how this can be achieved.



Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 298
Of course it is not passed, you don't post the the frame but a form, if you want to post things that are not in the form you can invoke a function instead of a link, something like this:



or whatever
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using a variable in the src attribute of frame
 
Similar Threads
Multiple checkboxes and Struts2
Html Frames
Passing workStation time to a servlet?
Disable Frame using java scrpt
Problem of <frameset> tag with struts2