wood burning stoves 2.0*
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
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: 93
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