I have a website that when built has the additional directory /joomla after the domain name. That is no longer required. I am trying to get rid of it when people visit the site as it makes some pages not work Heaps of search engines have the url including the /joomla.I thought if I could detect for the string /joomla then remove it and then force the page to go to the new location I would be safe, and it should handle any trailing page info as well.I thought it would be easy Below is my sad attempt:
I have been a happy lurker for some time now, soaking in the abundant knowledge that i have found here. But now I am at my wits end trying to find the solution to what is probably a noviceās oversight.I have a menu that animated with jquery. One of the link I have added js call a function that asks for a quick password then opens new page. Some reason it only seems to refresh the page. Here's the code involved.the js
function password(){ var password; var pass1="cool";
I have been using this trick for some time on a home page. The idea is to verify the user's browser has Javascript enabled before allowing the user to access a logon page. The NoJavascript.html page has instructions for turning on Javascript.
A Windows/ME PC using IE 6 now consistently goes to the NoJavaScript.html page when the button is clicked even though Javascript is enabled.
This has been working for several months and continues to work with IE 6 on Windows/XP and other browsers such as Firefox, Opera, etc.
I think the problem is related to the W/ME PC installing the IE 6 Cumulative security Update SP1 (KB896727). Has anyone else encountered a similar problem and found a solution?
below is clickunder code , but it open under windows when visitor click everywhere on the pagei need it be speacial for links , whenever visitor click on speacial link , it opens windows
<SCRIPT LANGUAGE="Javascript"> function PopShow3() { CookieTest=navigator.cookieEnabled; if(CookieTest)
This pops up a new window with every call. In the child window I call a parent function onbeforeunload, appClose() :
function appClose(){
if (window.opener && !window.opener.closed){ window.opener.CloseChild(getQueryString("application")); }}
This is in my frameset tag of the child code :
<frameset ... onbeforeUnload='appClose()'>
The window.opener.CloseChild() function is called perfectly when I have one child window open, but as soon as I create another child window both of the open child windows don't ever call it. They do both go into the onbeforeunload appClose() function, but do not call the window.opener.CloseChild() function inside of this routine.
Anyone have any ideas why when I have two child windows open I can't access the window.opener functions?
I have tried taking each new window out of the array and used the following code in CloseChild() :
Danged if I can find the thread, but I swear I saw a $.url() reference in here a day or two ago. It was beingutilized for parsing out the window.location or window.location.search parameters. I made a mental note because that was something I would be needing to do.
Now I can't find it, either because the search isn't finding it or I was dreaming about this function existing.
I rummaged about the API docs and didn't find it there either. Is it something provided by one of the plugins and not a function native to jQuery?
I want to dynamic modify the hidden value,for example i=3 //the value of i is get dynamic,i=2 or i=3 or any number test.test<i>.value="99" I know above sentence is error,how to write it correctly?
I have a function returning a string but the problem is that the color of it is blue which suits me well for some pages but not for others. Is it possible to "feel" what the color of the background in the current document is and set the color of the output accordingly? The background will be an image, in most cases.
function walk(_frames) { for(var i=0; i<_frames.length; i++) { var frame = _frames[i]; alert(frame.name); walk(frame.frames); } } walk(window.frames);
I can walk thru all the frames and display their name. what I want to do is to modify their 'onload' script to be notified when the frame content has changed (no, I can not set onload='...' in the html) but even if I set onload='top.myproc(...)', this top.myproc is never called.
I'm stucked in modifying events to make a multi-select select-input being additive/subtractive only. Because I should offer a solution similar to that select for DAUs (aka. MostIdioticUser) I have to make something else (checkboxes?).
It's not that want to fiddle around with events, but it seemed to be the most simply-plug-in-working-no-change-html-php solution.
Here is a fragment (the select and the plug-in code ...
I'm trying to build a table that has hidden rows below certain shown rows.
How would I modify this script so that it shows all of the hidden rows below a row, but not the hidden rows throughout the entire table?
$ ( document )
[Code].....
You can see the HTML table structure here, as well as it working with only 1 row. URL] I was able to get all the hidden rows throughout the entire table to show, but that's not what i'm looking for. I just want the hidden rows that are below their respective shown table rows.
We have a need to modify the actual css style definitions dynamically.We can successfully modify css class styles via the following steps. It seems to work fine in ie and firefox.
Does anyone know of a reason it might cause problems?[code]...
I need to modify IE print settings(paper size, print orientation) automatically, by javascript and can not use ActiveX control or reduce IE security setting.
I have some JS code to work on a data set with file name "data.txt" in the header section of an HTML page. <script type="text/javascript" src="data.txt"></script>
What I am trying to do is to ask a user to input a different file name, then update the file name in the <script> tag, for example, to
I could just give each image an ID and not use the 'this' keyword, but I haven't used it much so I'm curious about it. It's sending the image element to the function, so why can't I modify the src attribute with that information?
I'm using this code for slideshows on my page. But I want to make it so that I can put a different link for each image. How can I modify this to do that?
I'm trying to make a script that will generate source code for a few images. I want it so that when people press the generator button it changes what is in the text areas, but so far I cant get anything to work. Code:
What I am trying to do is insert a simple piece of javascript somewhere on the page that will modify the href location of every link on the page to a specific value defined in the script
Such as
Lets say for example the page contains 3 links
<a href="http://www.somesite.com/page1.html">Some site</a> <a href="http://www.somesite.com/page2.html">Some site 2</a> <a href="http://www.somesite.com/page3.html">Some site 3</a>
[Code]....
I am doing this so that once the bit of javascript is entered into the code of the page, all links on that page get replaced with a link pointing to a special offer page(including the original link as a variable)
how I write the javascript to update all links on the page on the fly every time the page loads??
I need to do something which seems relatively simple, but my total lack of javascript skills is holding me back. I have an input box which is used to specify a font-size, like this:
And I want to have a draggable bar which changes the value in the input box as it is dragged across the screen. This is so that users can simply use their mouse to modify the text size. I also want to dynamically change the CSS to match that change. I was thinking that changing the CSS value inline in the HTML could work - if I can figure out how to do that :P
Using the DOM the non-standard but widely implemented innerHTML extension, the following would be sufficient to modify the content of any element that can have content:
« <div id="anID">Some Content</div» with script of « document.getElementById("anID").innerHTML= "Some <em>new</emContent"; »
Where "anID" is the (unique on the HTML page) ID attribute value of the element to modify.
The script below adds support for « document.all » capable browsers. Support for NN4 is also possible, but certain issues mean that it is not listed here. Using the example above, the call would be written:
As title: $.readyList is not exposed after 1.4. but it is very useful for our projects. we save this list and call all method in it after doing some ajax operations.
assist with how to modify a specific css value of an object? For example, I want to do over all children of "body", and see if they have any css attributes containing a url(xxxxx) part. If so, I would like to make some change to that url (replace it with something else).