473,756 Members | 3,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 <lidisappeare d. 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="makeRe quest('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 1488
On Dec 24, 1:53*pm, Big Moxy <bigm...@gmail. comwrote:
test page -http://projects.missio ninternet.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 <lidisappeare d. 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="makeRe quest('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.missio ninternet.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 <lidisappeare d. 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="makeRe quest('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.missio ninternet.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 <lidisappeare d. 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="makeRe quest('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.missio ninternet.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
1549
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 within the table as intended. Does anyone know why this is? This is my XSL followed by my XML. I hope someone can help me! love, Sharon <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0"
2
2869
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 href=/style.css> <link rel=stylesheet href=/no_indent.css> <link rel=stylesheet href=/style.css> What the code below does is toggle between the two depending on what
3
1692
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 attach an event to every element of a class in a document (I'm including content from a lot of large 3rd party content, and iterating over the entire DOM searching for the classes and then attaching the event is proving too slow, aswell as being too...
1
2471
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 stylesheet" id="style-compact" etc...> <input name="view" type="radio" onclick="document.getElementById('style-compact').disabled=false">
7
5206
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 name from inbound xml to my internal elements to standardize disparate input. Now I could just create an xslt stylesheet for each possible inbound format and be done, but I think it would be powerful to be able store this mapping in a database and...
7
2046
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: win.document.write("&lt;img src="image.gif&gt;"); win.document.write..... How can I add the stylesheet information of the file x.css (how and where I must write in the new window the line: <?xml-stylesheet href="x.css" type="text/css"?> )
6
3056
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 box in safari or IE it does nothing. I have tested the same method but with hyperlinks rather than the menu box, this works with all three browsers, just wont wrk on the menu box for some reason. For all i know there could be a simple explanation to...
2
1643
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
6929
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 mozilla browser i get an error. Would someone help me pls. Here is the code: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"...
0
9275
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10034
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
9843
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
9713
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...
1
7248
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
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
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
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.