473,405 Members | 2,154 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,405 software developers and data experts.

Regarding html syntax

Hi,

i am passing arguments to a new window in the below manner:

Expand|Select|Wrap|Line Numbers
  1. <input type="submit" name="submit" value="click" onclick = "window.open('<c:url value='/viewMapToolScreen.html?com.smarts.autoAttachDM=10.80.159.20:7001/SAM-GSAM1&class=com.smarts.webapps.SmWebMapApp&com.smarts.launch.class=<\%=request.getParameter(\'classname\')%\>&com.smarts.launch.instance=SESSION-APP-InChargeService_SAM-T1-bay->APP-InChargeService_IP-Perspective&com.smarts.map.showAllBusiness=1&com.smarts.userid=admin&com.smarts.password=changeme'></c:url>')"/>
  2.  
i am getting problem when i am passing argument value as
Expand|Select|Wrap|Line Numbers
  1. <\%=request.getParameter(\'classname\')%\> 
i am getting javascript error as Excpected ')'.
i checked everything is fine.i hope i can get solution for this.thanks in advance.
regards,
rama
Dec 16 '10 #1
4 1240
acoder
16,027 Expert Mod 8TB
How does this appear in your browser (view source)?
Dec 16 '10 #2
Hi,
Following is my code from my browser(view source).i think it may help you.
Expand|Select|Wrap|Line Numbers
  1. <input type="submit" name="submit" value="click" onclick = "window.open('/Dashboard/viewMapToolScreen.html?com.smarts.autoAttachDM=10.80.159.20:7001/SAM-GSAM1&class=com.smarts.webapps.SmWebMapApp&com.smarts.launch.class=<\%=request.getParameter('classname')%>&com.smarts.launch.instance=SESSION-APP-InChargeService_SAM-T1-bay->APP-InChargeService_IP-Perspective&com.smarts.map.showAllBusiness=1&com.smarts.userid=admin&com.smarts.password=changeme')"/>
  2.  
i am getting problem when i passing argument as follows(view source syntax)
Expand|Select|Wrap|Line Numbers
  1. <\%=request.getParameter('classname')%>
  2.  
Dec 17 '10 #3
acoder
16,027 Expert Mod 8TB
That's because of the single quote.

There seems to be a problem with your server-side code.
Expand|Select|Wrap|Line Numbers
  1. <\%=request.getParameter('classname')%>
should not be appearing on the client-side. Check your syntax.
Dec 17 '10 #4
Hi,

Thanks for your suggestions.
Now that syntax problem has been cleared.

Regards,
Rama
Dec 17 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: andreas kirschner | last post by:
hello regexp developers, how can i replace text outside a html syntax by using reg exps in php? I mean i have a text like <h3>heading</h3> <p>text</p> <table> <tr> <td>cell1</td>
15
by: Andy Fish | last post by:
Looking at an HTML document recently, I found this syntax which was completely new to me <!> <style>...</style> <!> it looks to be some kind of conditional logic but it's not in a javascript...
2
by: Stephan Bour | last post by:
Hi, I am using the MailMessage method to send an email from a form and I have the following code giving me the following error on line 79: Compiler Error Message: CS1002: ; expected Source...
6
by: dubing | last post by:
Hello everyone, Anybody aware of any tools that can check html syntax? The problem I'm facing now is a page does not show very right (e.g. a text line protruding out of the right page border). ...
2
by: Samuel Shulman | last post by:
Please view the code below I get the following error: Per the active schema, the element 'li' cannot be nested within 'div'. Why? Thanks Samuel
20
by: Terrance | last post by:
Hello, I have a question I'm hoping someone can clarify for me. My question regards the declaration of a variable/ array variable. Anyhow, I was wondering if someone can explain the following...
1
by: prakash280681 | last post by:
how to get the correct result when we parse the xml code.Because in parsing when it get the syntax like < and & it break it and forward.. i use the code---- <?php $xml_file = "news.xml"; ...
0
by: Rama Jayapal | last post by:
can anyone solve my problem i have developed a webapplication where i have parsed the contents of the webpage using MILHTML parser from codeproject.com i have the document now in html...
3
by: Matthew Cox | last post by:
Hi, I've been searching the net all day today trying to figure out how one would accomplish what I originally thought would be a fairly straight forward and simple thing. The problem I'm trying...
1
by: madhu sagar | last post by:
i have lot of html code. i want to check the html syntax correctly and also want to check web2.0 standards. Is there any tool available for this. please help me.
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.