Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript with XML resizing IE on opening

Status
Not open for further replies.

caerdydd

Programmer
Mar 2, 2004
35
GB
All
Posted my code below which is the MS Smart Tags options used in Excel. I have been trying to get the XML to work whereby it will take the url, and on opening the browser resize it to the appropraite settings. This is the first time i have attempted javaScript so finding it tricky to get to grips with at the moment. It looked simple enough as the XML is valid and works but when accessing the url nothing happens - no error messages so i assume my Javascript is incorrect. Any ideas, grateful for any help?
Bests


<FL:smarttaglist xmlns:FL="urn:schemas-microsoft-com:smarttags:list">
<FL:name>Related Data</FL:name>
<FL:description>Shows Data</FL:description>
<FL:updateable>false</FL:updateable>
<FL:updatefrequency>10080</FL:updatefrequency>
<FL:autoupdate>true</FL:autoupdate>
<FL:smarttag type="urn:schemas-microsoft-com:eek:ffice:smarttags#States">

<FL:caption>Share Data</FL:caption>
<FL:terms>
<FL:termlist>"AB", "MC", "CS.", "CX", "LT", "NA", "BB", "KT", "CC", "EL"</FL:termlist>
</FL:terms>
<FL:actions>
<FL:action id="Share">

<FL:caption>Hold</FL:caption>
window.open(" "height=400,width=600");

</FL:action>

</FL:actions>
</FL:smarttag>
</FL:smarttaglist>
 
documentation said:
open Method Internet Development Index

--------------------------------------------------------------------------------

Opens a new window and loads the document specified by a given URL.

What's New for Microsoft Internet Explorer 6
As of Internet Explorer 6, the _media value of the sName parameter specifies that this method loads a URL into the HTML content area of the Media Bar.

Syntax

oNewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace])
>[tt]window.open(" "height=400,width=600");[/tt]
Change to something like this.
[tt]window.open("www.google.com",[red]"",[/red]"height=400,width=600");[/tt]
 
Sorry for late comeback on this one, but still no joy with tsuji's suggestion.
Anyone have any ideas?
Thanks
 
Don't know what kind of abbreviation is it?!
>[tt]window.open(" "height=400,width=600");[/tt]
[tt]window.open("[red]http://[/red]www.google.com",[red]"",[/red] "height=400,width=600");[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top