Great minds think alike. I have chnaged '' with 'amp;' (incase the email is
messed up it is ampersandamp;) yesterday. and it failed..:(
Gareth Evans [EMAIL PROTECTED] wrote:Bob,
I see, are you able to modify the servlet thats generating the xml? Can you
replace the '' with an
'' reference?
Here you go Frank:
AJAX CODE:
function getNewXMLHttpRequest() {
var _req;
// branch for native XMLHttpRequest object (safari/mozilla)
if (window.XMLHttpRequest) {
_req = new XMLHttpRequest();
}
// branch for IE/Windows ActiveX version
else if
Gareth, try/catch didn't reveal anything.
Frank, after numerous alerts, the problem seems to be in getAttribute(...)
function of AJAX:
for (var i = 0; i items.length; i++) {
alert(ID: + items[i].getAttribute('dataID'));
alert(Value: + items[i].getAttribute('dataValue'));
}
Thank you Gareth, Frank and Richard. It worked...
I replaced with %26 in my servlet and used javascript unescape to to get is
back they way it should
I tried URLEncoder.encode() the values in servlet but it seems that the unscape
is not converting + to spaces. In any case, it works.
Hi guys,
I know that this is not the AJAX list but I know people like Frank Z. et all
worked on it before. I am seeing problem with populating a dropdown using ajax
when the data contains ampersand.
For example:
My collection works when I have two values for the country field: 'United
Actually no. I am modifying legacy jsp/servlet code and not using Struts.
What happens is, when the users selects a state from the dropdown, I make an
ajax call to my servlet that returns a list of values to be populated in the
dropdown. Does this help?
Gareth Evans [EMAIL PROTECTED]
Gareth, you are correct abut ajax being independent. In my case, the
interesting thing is that the servlet is using database to look up the data and
requires where cause as a parameter so that it can generate a query, retrieve
data from database, create xml to be passed to the calling .jsp
I am having problem with JSF and CSS.
In my css I have
#linkMe:link {
color: #C9C9C9;
}
#linkMe:visited {
color: #C9C9C9;
}
#linkMe:hover, #linkMe:active {
text-decoration: none;
color: #C9C9C9;
}
In my JSP I have:
f:verbatim
h:outputLink styleClass=linkMe value=#h:outputText
Here is my include:
head
link href=pages/site.css type=text/css rel=stylesheet media=screen
/head
here is the generated source:
a href= value= class=linkMe
jsp:id=C:/Projects/JsfShale/WebContent/pages/main.jsp:47:6click me/a
Rick Reumann [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED]
here is my html source:
html
head
link href=pages/site.css type=text/css rel=stylesheet media=screen
titleTest JSF and Shale/title
/head
body
jsf link test: a href=# class=linkMeclick me/a
/body
/html
I know that this is wrong. It should be a href=# id=linkMeclick me/a
I would liek it also if please: [EMAIL PROTECTED]
Rick Reumann [EMAIL PROTECTED] wrote:[EMAIL PROTECTED] wrote the following on
8/25/2005 3:26 PM:
- right now I'm *finally* getting tiles to play nice with JSF/Shale so am
too excited to do much else than play with the app, adding links in
Rick, classes seem to work. Thank You. But the requirement is to use ID. May
be I can convince my team. I will go try Geeta's idea now to see how fun that
is...:=)
Rick Reumann [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote the following on 8/25/2005 3:29 PM:
I know that this is wrong.
Hi Gurus,
Sorry for the OT.
I have been working on jsp/servlets for a last four years to create web pages.
Now that I have found out there is more out there, I am in a dilemma. Which
one should I learn and why? I have a big web project coming up and was
wondering which of these I should
13 matches
Mail list logo