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

Stylesheet format lost after adding onClick

test page - http://projects.missioninternet.com/...ients/test.php.

When I added the onclick event so that I could employ ajax on this
page the stylesheet formatting for this <lidisappeared. If you look
at the test page you can see what it should look like. The stylesheet
also defines a:hover behavior (change the font-weight to bold).

<li onclick="makeRequest('echo.php?clientID=<?php echo $clientID; ?
>')">Reports</li>
Q1: What happened?
Q2: How can I resolve this?

Thank you!
Tim
Dec 24 '07 #1
4 1462
On Dec 24, 1:53*pm, Big Moxy <bigm...@gmail.comwrote:
test page -http://projects.missioninternet.com/proweb/clients/test.php.

When I added the onclick event so that I could employ ajax on this
page the stylesheet formatting for this <lidisappeared. If you look
at the test page you can see what it should look like. The stylesheet
also defines a:hover behavior (change the font-weight to bold).
Why not post a test page that shows the problem?
>
<li onclick="makeRequest('echo.php?clientID=<?php echo $clientID; ?
')">Reports</li>
Don't post server side code.
>
Q1: What happened?
Who knows?
Q2: How can I resolve this?
Post a link to the non-working version and/or the client side markup.
Dec 24 '07 #2
On Dec 24, 11:33*am, David Mark <dmark.cins...@gmail.comwrote:
On Dec 24, 1:53*pm, Big Moxy <bigm...@gmail.comwrote:
test page -http://projects.missioninternet.com/proweb/clients/test.php.
When I added the onclick event so that I could employ ajax on this
page the stylesheet formatting for this <lidisappeared. If you look
at the test page you can see what it should look like. The stylesheet
also defines a:hover behavior (change the font-weight to bold).

Why not post a test page that shows the problem?
<li onclick="makeRequest('echo.php?clientID=<?php echo $clientID; ?
>')">Reports</li>

Don't post server side code.
Q1: What happened?

Who knows?
Q2: How can I resolve this?

Post a link to the non-working version and/or the client side markup.
The link I provided doesn't work on IE 7 and FF 2.0.0.11. I always
assume that it is better to see the problem first hand than look at a
picture of the problem.

Nonetheless here is a link that contains the problem as I see it -
http://projects.missioninternet.com/...s/problem.html.

I posted an update indicating I added onmouseover to mimic the
stylesheet definition however I don't know how to restore the default
format when the mouse moves away.

Thanks,
Tim
Dec 24 '07 #3
On Dec 24, 3:13*pm, Big Moxy <bigm...@gmail.comwrote:
On Dec 24, 11:33*am, David Mark <dmark.cins...@gmail.comwrote:


On Dec 24, 1:53*pm, Big Moxy <bigm...@gmail.comwrote:
test page -http://projects.missioninternet.com/proweb/clients/test.php..
When I added the onclick event so that I could employ ajax on this
page the stylesheet formatting for this <lidisappeared. If you look
at the test page you can see what it should look like. The stylesheet
also defines a:hover behavior (change the font-weight to bold).
Why not post a test page that shows the problem?
<li onclick="makeRequest('echo.php?clientID=<?php echo $clientID; ?
')">Reports</li>
Don't post server side code.
Q1: What happened?
Who knows?
Q2: How can I resolve this?
Post a link to the non-working version and/or the client side markup.

The link I provided doesn't work on IE 7 and FF 2.0.0.11. I always
assume that it is better to see the problem first hand than look at a
picture of the problem.
I thought when you said it was what it should look like, that meant it
was a working example (rather than a broken one.) I don't know what
you mean by a "picture of the problem."
>
Nonetheless here is a link that contains the problem as I see it -http://projects.missioninternet.com/proweb/clients/problem.html.
Okay. Now I see what you mean by a picture. That doesn't help. I
tried both of your links. One works and the other is a picture of one
that doesn't work (I think.) Post a non-working page (i.e. a page
with the rollover bold effect broken by the insertion of the onclick
attribute.)
I posted an update indicating I added onmouseover to mimic the
stylesheet definition however I don't know how to restore the default
format when the mouse moves away.
Set the className property to an empty string onmouseout.

And BTW, the curved corners are all messed up in IE7 and Firefox (at
the bottom.) If they look good in your browser(s), you need to adjust
your font size, window size or something.
Dec 24 '07 #4
Big Moxy wrote:
Nonetheless here is a link that contains the problem as I see it -
http://projects.missioninternet.com/...s/problem.html.

I posted an update indicating I added onmouseover to mimic the
stylesheet definition however I don't know how to restore the default
format when the mouse moves away.
Your problem is programming overkill. Use a simple a[href]
element that you format with a `:hover' CSS selector instead.
PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Dec 24 '07 #5

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

Similar topics

0
by: Sharon | last post by:
Hiya, I have this stylesheet (based on an example @ http://rdcpro.com/xmldev/filterandsort)which I'm trying to modify so that it will work for my own XML and I get some data but it doesn't appear...
2
by: wjbell | last post by:
I have a piece of javascript I need to modify. Right now it changes a stylesheet in the document between style.css and no_indent.css. These are in the head of my document: <link rel=stylesheet...
3
by: Jim Ley | last post by:
Hi, IE has the ability to setExpressions on stylesheets so you can calculate the value of the css property through script. For various reasons I'm wanting to use a side-effect of this to...
1
by: Manatee | last post by:
Hi group. I have exactly one external, alternate stylesheet that I want to enable or disable by form controls, on one page only (not saved across pages). I used: <link rel="alternate...
7
by: pintihar | last post by:
Hi, As a follow on from an earlier post I have another question about xslt. Is it possible to create the stylsheet programatically? Is this sensible? In the first phase I needed to map element...
7
by: stefano | last post by:
Hi all, I hopen a new empty window from js code: var win = window.open("","debug","width=500,height=300,modal,dialog,resizable"); and I add some element to the new window:...
6
by: dragze | last post by:
Hi, right i have a menu box wich allows the user to change what stylesheet the website uses. Now this all works just the way it shud in FF, but not in safari or IE, when u select ur option from the...
2
by: J055 | last post by:
Hi I'm adding rules dynamically to the HtmlHead.StyleSheet using the CreateStyleRule method. I'd like to know how to check whether the rules already exist first. Thanks Andrew
3
by: Leighya | last post by:
Im currently working on this xml file but when i load it to Mozilla, i got an error "Error Loading Stylesheet: Xpath parse failure: invalid variable name" It loads on IE properly. Only with the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.