473,395 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Weird question? Two <HTML> sections when XslTransform used?

Hi, in trying to discover why my RegisterStartUpScript wouldn't work (I
do NOT see it in the HTML source), I looked at the HTML source of a page
where I do an XslTransform.

First, I get the transform results as expected, beginning with <html>
and ending with </html> but then I see the following immediately after
that:

<HTML>
<HEAD>
<title>Work Instruction</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form name="Form1" method="post" action="WI.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwtMTI3OTMzNDM4NDs7Pn0AD1+1JID+r7cXT86Hd3D oaMxM" />
</form>
</body>
</HTML>

I suspect this is interfering with my startup script but I have no clue
as to why or how?

Any enlightenment welcome!

Thanks, Kathy
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #1
10 1598
Kathy,

I too am having a similar problem - although my script does appear to be working on some machines and not others. I have tried restoring the default settings for the browser, but still nothing.

Would be grateful for any help you might get.

Alex
"Kathy Burke" <ka**********@attbi.com> wrote in message news:uN**************@TK2MSFTNGP11.phx.gbl...
Hi, in trying to discover why my RegisterStartUpScript wouldn't work (I
do NOT see it in the HTML source), I looked at the HTML source of a page
where I do an XslTransform.

First, I get the transform results as expected, beginning with <html>
and ending with </html> but then I see the following immediately after
that:

<HTML>
<HEAD>
<title>Work Instruction</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form name="Form1" method="post" action="WI.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwtMTI3OTMzNDM4NDs7Pn0AD1+1JID+r7cXT86Hd3D oaMxM" />
</form>
</body>
</HTML>

I suspect this is interfering with my startup script but I have no clue
as to why or how?

Any enlightenment welcome!

Thanks, Kathy
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #2
Alex, where in the page calling your xslTransform is your
RegisterStartUpScript?

Where is it showing up in that "doule" HTML source?

Thanks,

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
Alex,

Sorry if this is too obvious, but I've had that happen due to virus
protection and/or Norton Internet Security running on systems...they
also usually have a stop-scripts option, which even when I turned it
off, still has problems until I turned the program itself off.

HTH,

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4
Kathy,

Tried turning off the virus protection but that didn't work ?

What I am trying to do is send dynamic parameters to a flash object using a
JavaScript function. This is being called after the page load event, and
seems to work on some machines but not others. There doesn't seem to be any
pattern to browser versions or operating systems as I have tried restoring
the browser defaults, without any joy ?

Very grateful for any more help/advice.

Alex
"Kathy Burke" <ka**********@attbi.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Alex, where in the page calling your xslTransform is your
RegisterStartUpScript?

Where is it showing up in that "doule" HTML source?

Thanks,

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #5
Alex, does your script simply not fire sometimes?

What parameters are you passing? Are they variable, e.g., text that
changes? Could they sometimes contain unescaped characters (such as
apostrophe) that is killing your script?

Just some thoughts...please post your script and perhaps a sample or two
of the parameters.

Thanks,

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #6
Kathy,

The script always fires on certain machines but never fires on others ? I
know it sounds like browser settings, service packs etc.. but I have looked
into all of this and can't detect any pattern ?

The parameters are complex, simply single digit numbers.

int startpage = int.Parse(Nav.navpage.ToString()); eg. 21

int direction = int.Parse(Nav.navdir.ToString()); eg. 1

string focusScript = "<script language='javascript'>" +

"Form1.myNav.SetVariable('/:newStartFrame'," + startpage + ");" +

"Form1.myNav.SetVariable('/:newDirection'," + direction + ");" +

"</script>";

// Add the JavaScript code to the page.

Page.RegisterClientScriptBlock("FocusScript", focusScript);
"Kathy Burke" <ka**********@attbi.com> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
Alex, does your script simply not fire sometimes?

What parameters are you passing? Are they variable, e.g., text that
changes? Could they sometimes contain unescaped characters (such as
apostrophe) that is killing your script?

Just some thoughts...please post your script and perhaps a sample or two
of the parameters.

Thanks,

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #7
Kathy,

I am now convinced it is something to do with using SmartNavigation on the
page. It is still a mystery why it works on some machines and not others.
"Alex" <al**********@gimlet.co.uk> wrote in message
news:uQ**************@TK2MSFTNGP09.phx.gbl...
Kathy,

The script always fires on certain machines but never fires on others ? I
know it sounds like browser settings, service packs etc.. but I have looked into all of this and can't detect any pattern ?

The parameters are complex, simply single digit numbers.

int startpage = int.Parse(Nav.navpage.ToString()); eg. 21

int direction = int.Parse(Nav.navdir.ToString()); eg. 1

string focusScript = "<script language='javascript'>" +

"Form1.myNav.SetVariable('/:newStartFrame'," + startpage + ");" +

"Form1.myNav.SetVariable('/:newDirection'," + direction + ");" +

"</script>";

// Add the JavaScript code to the page.

Page.RegisterClientScriptBlock("FocusScript", focusScript);
"Kathy Burke" <ka**********@attbi.com> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
Alex, does your script simply not fire sometimes?

What parameters are you passing? Are they variable, e.g., text that
changes? Could they sometimes contain unescaped characters (such as
apostrophe) that is killing your script?

Just some thoughts...please post your script and perhaps a sample or two
of the parameters.

Thanks,

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 17 '05 #8
Could not totally understand your question. Tried to view the attachment but it was marked as unsafe.
Here is my understanding of the issue,
Both VS.NET and XSLT are generating html tags in the output and thus causing problems. My suggestion is to remove the content(from <html> to </html> inclusive) in the aspx page totally and let xslt do everything.

L.L.
"Kathy Burke" <ka**********@attbi.com> wrote in message news:uN**************@TK2MSFTNGP11.phx.gbl...
Hi, in trying to discover why my RegisterStartUpScript wouldn't work (I
do NOT see it in the HTML source), I looked at the HTML source of a page
where I do an XslTransform.

First, I get the transform results as expected, beginning with <html>
and ending with </html> but then I see the following immediately after
that:

<HTML>
<HEAD>
<title>Work Instruction</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form name="Form1" method="post" action="WI.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwtMTI3OTMzNDM4NDs7Pn0AD1+1JID+r7cXT86Hd3D oaMxM" />
</form>
</body>
</HTML>

I suspect this is interfering with my startup script but I have no clue
as to why or how?

Any enlightenment welcome!

Thanks, Kathy
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #9
Alex, I hadn't even thought of that...Smart Navigation is definitely
klugy...I turned it off after trying it.

If you need to set scroll for postback, I have a simple javascript I use
that I build right into my xsl.

Let me know if it would help you.

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #10
Didn't realize I could do that (remove HTML section from the aspx page).
Thanks, I'll give it a try.

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: josh dismukes | last post by:
/// here is the code i'm getting a parse error on the last line of the code which /// is </html> any help will be much appreciated. <?php session_start ();
5
by: Ben | last post by:
hi all, just wondering if it is possible to call a function that resides on external php file before any <html> tag?? i have a code that sets a cookie which needs to be called before <html> tag....
9
by: Philip TAYLOR | last post by:
Configuring a new instance of IIS, I noticed that it allows an HTML-formatted document trailer to be appended to every document served. Unfortunately, on checking its behaviour, I find that it...
2
by: taras.di | last post by:
Hi everyone, Is it possible to place javascript outside of <html> tags? I'm trying it on mozilla atm, and it seems to be working, but I was more worried about the older browsers. Cheers ...
4
by: Mark G. | last post by:
Hello. I am attempting to write a "scraper" to download information from a commercial web site. Oddly enough, they don't want to make this easy for me! Their pages include plenty of Javascript,...
1
by: yawnmoth | last post by:
I'm trying to mess around with PHP5's DOM functions and have run into something that confuses me: <?php $dom = new DOMDocument(); $dom->loadHTML('<html></html>'); echo...
1
by: John | last post by:
Hi var poster="<html><head..... etc .... </html>"; var animal='dog'; The string contains images and text that changes. Originally I wanted to do something like print "<a href=" +...
3
by: Arodicus | last post by:
This is bugging me: how do I reference the topmost node (HTML) within a document? I'd like to set a class on it, which specifies various browser/os/versions so that several...
3
by: gaya3 | last post by:
Hi, can anyone please say me how to add <html> tags inside JTextarea? Thanks in Advance. -Thanks & Regards, Hamsa
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.