473,805 Members | 2,268 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Hi, in trying to discover why my RegisterStartUp Script 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="Micros oft Visual Studio.NET 7.0">
<meta name="CODE_LANG UAGE" content="Visual Basic 7.0">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING= "GridLayout ">
<form name="Form1" method="post" action="WI.aspx " id="Form1">
<input type="hidden" name="__VIEWSTA TE"
value="dDwtMTI3 OTMzNDM4NDs7Pn0 AD1+1JID+r7cXT8 6Hd3DoaMxM" />
</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 1629
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**********@a ttbi.com> wrote in message news:uN******** ******@TK2MSFTN GP11.phx.gbl...
Hi, in trying to discover why my RegisterStartUp Script 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="Micros oft Visual Studio.NET 7.0">
<meta name="CODE_LANG UAGE" content="Visual Basic 7.0">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING= "GridLayout ">
<form name="Form1" method="post" action="WI.aspx " id="Form1">
<input type="hidden" name="__VIEWSTA TE"
value="dDwtMTI3 OTMzNDM4NDs7Pn0 AD1+1JID+r7cXT8 6Hd3DoaMxM" />
</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
RegisterStartUp Script?

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**********@a ttbi.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Alex, where in the page calling your xslTransform is your
RegisterStartUp Script?

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...plea se 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.n avpage.ToString ()); eg. 21

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

string focusScript = "<script language='javas cript'>" +

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

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

"</script>";

// Add the JavaScript code to the page.

Page.RegisterCl ientScriptBlock ("FocusScrip t", focusScript);
"Kathy Burke" <ka**********@a ttbi.com> wrote in message
news:e8******** ******@TK2MSFTN GP09.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...plea se 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**********@g imlet.co.uk> wrote in message
news:uQ******** ******@TK2MSFTN GP09.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.n avpage.ToString ()); eg. 21

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

string focusScript = "<script language='javas cript'>" +

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

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

"</script>";

// Add the JavaScript code to the page.

Page.RegisterCl ientScriptBlock ("FocusScrip t", focusScript);
"Kathy Burke" <ka**********@a ttbi.com> wrote in message
news:e8******** ******@TK2MSFTN GP09.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...plea se 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**********@a ttbi.com> wrote in message news:uN******** ******@TK2MSFTN GP11.phx.gbl...
Hi, in trying to discover why my RegisterStartUp Script 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="Micros oft Visual Studio.NET 7.0">
<meta name="CODE_LANG UAGE" content="Visual Basic 7.0">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING= "GridLayout ">
<form name="Form1" method="post" action="WI.aspx " id="Form1">
<input type="hidden" name="__VIEWSTA TE"
value="dDwtMTI3 OTMzNDM4NDs7Pn0 AD1+1JID+r7cXT8 6Hd3DoaMxM" />
</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

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

Similar topics

3
2934
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
3056
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. If I use that code on the same file, it works fine. But I'd like to use it on a separate php file so that it'd be easier to modify in the future because that same function can be called from other files too... When I include the external php...
9
2010
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 appends the trailer /after/ the closing </HTML> of the document, separated by a blank line. I therefore have a few questions : 1) Assuming HTML 4.01 Transitional, can anything legitimately follow the closing </HTML> tag ?
2
2101
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 Taras
4
3950
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, and more than a few redirects. One that is stumping me is a small page that includes a document object redirect in the <body> tag's onload() event. Like this: <body
1
2247
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 $dom->childNodes->length; ?>
1
2253
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=" + poster + ">Choose Poster of a " + animal + "</a>";
3
3446
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 browser/os/version-specific css bugs may be addressed without coding. eg: <HTML class="_IE _IE7 _Win _IE7Win"> The closest I've come is document.body.parentNode (line 22, below), but this of course requires that my script be executed from within body... I'd prefer to...
3
8853
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
9718
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10614
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10369
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10109
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3847
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.