On 7 Jun 2005 at 9:25, Erwan TROEL wrote:
>i simply want to change attributes of frames from svg
>but parent.something doesn't work
____________________________________________
I think that I may have have misread your problem ..
sorry .. I hope that below is nearer to what you are looking for.
Going back to your original posting ..
[quote]
>so in this js i try access the frameset f3 to modify the attribut cols
>concretely the change in the svg will modify the size of the frameset on screen
[/quote]
So you are trying to use javascript to dynamically change the attribute "cols"
in your frameset F3 containing the svg content?
Here is an untested idea ..
You can use PHP or JSP to modify the frameset script dynamically (but this
requires
server side scripting).
Or you can use document.write .. the frameset attributes row1, row2 and cols
(for
example) being passed through javascript call ..
Example below (totally untested but it may give you an idea to build on):-
// ___________________________________________
function resizeframeset(row1, row2, cols)
{
// attributes row1, row2 and cols
document.open();
document.write(" <html><head><title>Document sans titre</title></head> ");
document.write(" <frameset ID='F3', rows= + row1 + ',' + row2 + ','
+ 'cols=' + cols + ',' ");
document.write(" framespacing='0' frameborder='yes' border='50'> ");
document.write(" <frame src='test.svg' name='mainFrame'> ");
document.write(" <frame src='test.svg' name='bottomFrame'> ");
document.write(" </frameset> ");
document.write(" <noframes><body> ");
document.write(" </body></noframes> ");
document.write(" </html> ");
document.close();
}
// ___________________________________________
notes:
Beware the use of mixed double and single quotations in document.write syntax.
Use outer double quotations and inner single quotations.
You may need quotations around the row1, row2, cols attributes.
This does require a relaunch of your frameset page.
...
The other postings/ideas on using iframes still apply.
[Non-text portions of this message have been removed]
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/