refer to my development site - [URL]... If viewed in IE6, it has no header graphic and no border graphics. Before the implimentation of PNGFIX it looked like attachment image 1. After implimentation it looks like attachment image 2 The files in use are jquery-1.3.2.min.js and jquery.pngFix.js. I have also tried using jquery-1.4.4.min.js but this does not change the situation. jquery-1.3.2.min.js has been reverted to as it is native to the Coppermine Gallery.
there again, I'm using pngFix plugin to work with some png under the doomed IE6 If I apply the fix to the document:$(document).ready(function()
{ $(document).pngFix(); });
It fixes the first png in the site, in this case one applied to a wrapper div.Inside this wrapper I have another div (menu) which contains an ul with some png's, for those, the pngFix is doing nothing...Supposely, this fix is applied to all the elements inside the document, but it doesn't...[/code]
I have an issue with the IE6 png fix not working with the tab js.Here's the test page: doo rshox.com/tab-p ages.html (remove spaces)I think it has something to do with the onload function but then I don't know js well enough to troubleshoot issues like these.
Here's the pngfix script code: var supersleight = function() { var root = false;
I have been working with the cluetip plug-in for several hours and am stuck. I can get most of the functionality working, but am unable to load another page within the tip and see the formatted html. The text shows up in the tip without formatting. The CSS for the tooltip itself is working as expected. I have tried copying and pasting the html from the fragment pages on the cluetip demo site, but am having the same issue. I am using the exact code used in the 2nd example on the demo page: [url]
suppose we have a <a href=www.google.com>google</a> tag in our HTML page.And it is inside a div with class name as chapter. Now i added the script as below,
I am trying reload a div on a page with content from another page using ajax.I am able to do this but the problem is that I need to wait for the page (that I am sending an ajax request to) to finish inputing all the relevant html before it is shown on the page calling the ajax otherwise the re-load of the div will not be up-to-date.
If the user clicks a link in my webpage then a text gets updated. However, one text is too long and I need to put a HTML line-break into it. When I stick in a <brthe <brwill simply appear in the web page. I have no idea how to make the browser interpret the <br>.
I know there is a workaround solution by putting the text in a invisible table cell. However, then I cannot set where the lines break......
Simply question: I want to have a DIV start by being invisible, then fade in but I am not sure how to start in such a way that jQuery can make it fade in.
How can I modify a page before it is rendered? I tried using greasemonkey to remove a script, but it runs it anyway. Is there some way I can get rid of a script on a page before it runs.
What I originally tried to do was removeChild, but that of course is done after the page is rendered. Then I tried wrapping the script in <noscript> tags, and it still was executed.
I want to write a select control and use a Javascript function to handle all click events on the control. Under certain circumstances I also wish to prevent the dropdown's list from being rendered.
Here is a sample showing what I am _unsuccessfully_ trying to do.
i came up zero when trying to find a direct method/value in the javascript object of the Node to determine wether an object is shown or not. So i wrote the following function. it checks relative to a parent (which could by document.body or a form or something) if somewhere on the way to that parental fixpoint a display='none' is found. If theres a better/faster or even direct way to do this please let me know, otherwise enjoy this function.
P.S. i did not optimize it for IE since it doesn't support the prototype anyway
Node.prototype.visibleByInherit=function(s) { var p=this; var v=true; do { if(p.style!=null) if(p.style.display!=null) if(p.style.display.toLowerCase()=='none') v=false; p=p.parentNode; } while(p!=null && p.parentNode!=null && p!=s.parentNode && v); return v; }
I have some initialization to be done at page load time, which changes the text of some anchors so that they are consistent with the query string (these anchors are used as criteria selectors, and should be initialized to the criteria contained within the url).
IE and Safari fire the onload event before rendering any elements, so when the event handler synchronizes the anchors, they are rendered with the right contents immediately. Firefox, though, renders the page first, and then fires the handler, which results in the anchors getting their initial values, and then changing to proper selections. I've tried calling my init() method immediately after the anchors are defined in my document - no difference, looks like Firefox is rendering everything as soon as it's encountered in the document.
Is there any way to have my code run before any elements are rendered in Firefox? Currently I've "solved" this by hiding the containing div in the document, and showing it after making changes. This results in the UI visually reloading itself with each new page, which is not very desirable either.
I have an issue where I am trying to allow the user to click on a table and automatically copy a table into the clipboard. I do this with text using IE:
function clickCopyText(fi) { window.clipboardData.setData("Text",fi.innerText); }
so to copy the table, I tried:
function clickCopyHTML(fi) { window.clipboardData.setData("Text",fi.innerHTML); }
The Trouble with Tables is the HTML itself gets copied as opposed to the rendered table. I am probably looking at some other way of getting the code to the clipboard, but I am stymied. I can do it with images, but not with rendered HTML.
I am having a problem accessing and element by ID in a script that runs via 'window.onload' at the end of all my script definitions. Do the HTML elements exist at that point or should I look somewhere else for a bug?
I have 3 types of columns and they are identified by their class (in the TD and TH)... they are1. Always - cells that always appear - includes a primary key2. Main - cells that are necessary to be shown, but can be toggled3. Advanced - cells that are superfluous but helpful for the viewer.I want the user to be able to toggle Main and Advanced as visible/invisible. I tried the below code, which works, but, but since there's so much data it will lock up the browser and even invokes this ff error: "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: jquery-1.3.2.min.js:19"My questions are basically, can this be done without freezing up the browser? (e.g. can I group columns together and hide each column, since I believe it's the sheer amount of cells that I am hiding?)Here is my code:here's my javascript (on top of jquery's inclusion)
I'd want that: at the first user's click on the #register div, the div #registerForm become visible, it should remains visible also when the user click the submit button within and it should disappear if the user click a second time on the #register.I partially solved my problems with this:
How you handle back button scenario in firefox browser. The problem is when i click browser back button , the javascript on load is not executed and page is rendered from cache.
i would like to have a popup window from a parent window. this window should refresh every 5 seconds and reload parent window. OK i know its dumb, but i have my own reasons to test this. NEXT: is it possible to make this popup window invisible ?
I had no experience with cookies up to today. I read about the properties of cookies. Then I started to write a few lines of Javascript into my html-page:
function SetMyValue(name, val) { document.cookie = name+"="+val; }
and
SetMyValue('firstname','michael');
I did not set the properties "expires" and "domain".
When I put the page to my server, called it with the IE 6 and looked into the IE for my cookie, it was not there. But when I made a cgi program that showed HTTP_COOKIE, I saw, that the IE was sending it. So I had an invisible cookie with my IE. Only when closed the IE and opened it again, it was lost.-
I would like to make an hyperlink invisible, or disabled, with a click. The hyperlink opens a new window (target = _blank) and once the new window is shown, I don't want the hyperlink to be active anymore.
The code below sometimes works the way I want it to...by downloading a video from an external site and displaying a placeholder whenever the page loads. But most of the time, the video won't download and display until a user hovers their mouse over the blank area.
Is it possible to modify the code so that it functions consistently by always downloading and displaying the placeholder when the page loads? I don't want users to think there's a missing/broken video because there's a blank space where the video is supposed to be, and they don't realize they have to mouse over it.
<a href="#" onclick="return(false);" rel="videoGUID=4cd75af679b39g4963V828c00c581024ae86&" style="display: block; width: 550px; height: 310px" id="4cd75af679b39g4963V828c00c581024ae86" width="550" height="310">How to Take Care of Your Dog's Teeth: VetVid Episode 001</a><script type="text/javascript" src="http://360.sorensonmedia.com/4cd75af679b39g4963V828c00c581024ae86/embedv2.js"></script>
I understand how to make a div (table) invisible and then visible on a timer.. What I want to do is add a counter to my code and make the table flash 3 times and then stop with the table visible. all my code does right now is make the table flash on and off every 1 second. This is what I have right now:
<script language="javascript" type="text/javascript"> function magic() { var d = document.getElementById('MagicTable'); if (d.style.display == "none") d.style.display = "block";
i have a div with a dropdown box with autopostback="true" if i change the selction frm dropdown the div becomes invisible which i dont want how do i rectify it at present i have a html button control with a function to show the div
on load function i have the div style=none when i click on the button the div is visible but when i change any selection frm drpdown the div becomes invisible