I have encountered an issue that has me totally confused. I have a
page where the user clicks on a hyper-text link and is then directed
towards another page (passing additional variables, etc.). If the
anchor text does not contain the "@" symbol, clicking on the link
works in a normal fashion. However, if the anchor text is something
like "foo@test", then clicking on the text displays the full URL
(still goes to the correct link, but I don't want the URL displayed).
I've also tried substituting the "@" symbol with its decimal
equivalent, but no luck.
Essentially, in my case I am trying to pass additional variables
that will allow the user to navigate more freely within my WebLogic
application (these variables are not initially available to the
original URL, but are appended once the user clicks on the link)...
1) In setting the attributes on the fly, how do I attach the anchor's text (the user clicks on) to the anchor?
2) Is there a way to include the attributes within the global variable's original definition, thereby sparing me from coding the attributes on the fly?
1) In setting the attributes on the fly, how do I attach the anchor's text (the user clicks on) to the anchor?
2) Is there a way to include the attributes within the global variable's original definition, thereby sparing me from coding the attributes on the fly?
I have some text, where I don't want to display all of the text until the user clicks 'more' link. Once the user clicks 'more' link I want to show the div below and change the link text from 'more' to 'less' so on subsequent click the div below will collapse. <a href="#" class="moreLink" onclick="javascript:ShowMore(this);">more</a> <div id='completeDiv'>etc etc etc </div> function ShowMore(object){ ....show the div and $('a.moreLink').text('less'); ---> this does not work for me. }
<a href="google.com" id="test"><span>0</span>The text that I actually want</a> Using JQuery I want to be able to select "The text that I actually want". $('#id').text // outputs 0The text that I actually want Is there a way to accomplish this?
I have the following JQuery code in place [code]For now that replaces the text of all of the anchor tags within the div 'twitter_update_list with the text GO however I want to modify this so it replaces all of the anchor tags in that div in this way EXCEPT for the very last anchor tag in that div which I need to stay as it is.
Lets say I have a bunch of links with the same class but different anchor text like [code] When the page loads I want the anchor text of each link to display the same text of my choosing. However, when the visitor clicks a link the anchor changes back to the orignial. It would be best if all links could be changed back their original if any link is clicked but this isn't necessary.
I need to get the page to reload with the anchor in the link when it is clicked in a dropdown menu. For example if I am on 'www.domain.com/about/#2' and I then click on 'www.domain.com/about/#3' the url changes but the page doesn't reload so I need the page to reload, but keep the new anchor (#3).I gave the links with anchors a class of 'reload' and tried this:
I have a script that scans an HTML document for headers and special comment tags for the purpose of generating a left-floating/position-fixed DIV that contains the document's outline or "table of contents." Within the DIV are lists (UL element by default) whose items (LI elements) are jump-to links (A elements) to the points (headers, special points marked for inclusion in table of contents) in the document. The problem is this. I have typical HTML document with links that jump to points (usually headers) inside the document, as shown below:
Code:
<body> <p>This is addressed <a href="#later-text">later</a> in this document <h1><a id="later-text"></a>Header Text</h1> <p>... </body>
But my script, being a document outliner that finds headers in a document, inserts another anchor as a jump-to point just before the first occurrence of text in the header (inserted A element shown in red below). This somehow disables the document-coded jump anchor (shown in blue below). And it occurs in FF and IE, which suggests it is not a browser-specific issue. Why does it occur? Is there something in the HTML spec that states that two anchors to which a jump occurs are not allowed to be adjacent elements in the document?
Code:
<body> <p>This is addressed <a href="#later-text">later</a> in this document <h1><a id="later-text"></a><a id="jump-1"></a>Header Text</h1>
[code]....
To reproduce what I am seeing, search for the text "Why Is A Survey Done". The first occurrence is a within-document jump-to link, which should jump to a header below it. If the script execution to generate a document outline is disabled, the jump works. But if the script is executed and the document outline generated, the jump-to link does not work.
Having a little bit of trouble with a site I'm currently working on I'm using some AJAX for the instant g-mail/facebook style navigation, you know the kind, with no refreshes, etc. Problem is, to allow for back/forward and bookmarks, I currently use a URL that looks like:[URL].. This is fine, not a problem... The issue comes into play when I want to open up the news.html page, from my home.html page, and have it open to news item #6 (for example).
I can't add a #, because one is already being used to reference the anchor for the content div. Has anyone run into a similar problem before? If so, how did you resolve it? Can some jQuery be used to find the location of the news item div in question, on load, and scroll to it like that?
So I have been toying with trying to Find and Replace any chars after the @ symbol in a little twitter like thing I wrote. I am having trouble getting the function to find the @username and change it to Red. Here is my function so far...
I am having a problem with internet explorer 7. I am working on a site that maps google maps to show .gpx files, and it is working fine in IE8, firefox (v2 and 3) and safari. However in IE 7 i am getting the following error when running the following line
Code JavaScript: $(document).ready(function() { initialize(); $("#player_controls a img").tooltip(); }); Line: 45 Error: Expected Identifier, string or number;
The funny thing is that initialize is a clearly and previously defined function, I had some problems before with IE due to variables being out of scope, so I am afraid this may be something related, but I am not very familiar with IE inner workings so,
I am trying to prevent showing a symbol when a user clicks on an edit button.When negative numbers are entered and the edit button is clicked on then it removed the minus sign but keeps the symbol.
I have a javascript to expand and collapse content in 3 ways (all items, one item and nothing).
I have written a javascript myself but the iconcs that are used to switch between modes don't show correctly in IE7, not always then. Here's how it should work:
Default expand one, expand all, expand nothing is loaded from a cookie. If not available, expand all will be executed.
If you click on an icon an event goes which does 3 things: changes the event of the image in the browser (so open_all becomes open_one, this is how I make it switch).adds style="display: none;" to the other element and makes this one visible.saves the new state to a cookie. Code:
ich got a textarea and want to add a special symbol to it like average. would be awesome if there were a button next to the textfield where a dialog pops up. via click on the specific symbol it should be added at the promt in the textarea box. maybe something like that smiley input in this wysiwyg-editor. should be as easy for the user as possible.does anybody know a plugin for that problem? i googled a lot and didn't find anything suitabl
I want to create a "radio" symbol on a website. When click on it, a cumulative number will be shown beside the symbol. <form> <input type="radio" value="Click me!" onclick="m=1; n=m+1; document.write(n);" /> </form>
I tried to move write function out of the form using Javascript but I couldn't get it. <script type="text/javascript"> document.write(n); </script>
I encountered a possible blockUI bug in IE7 and IE8: If you block theui and don't move your mouse after that, the cursor displays thehourglass symbol UNTIL you move your mouse again.Thus, the .unblock() method doesn't have the desired effect on themouse cursor.You can easily reproduce the effect with the blockUI demos: just clickon the "Run" Button without moving your mouse further.
I have here a jquery code that load one combobox to another with data from mysql. The point is, the combobox that receive the data from mysql, if I have a name with special character like "~" or "^" any other accent in the mysql, the combobox that receive this data appear a strange symbol like as in the file attached in the place of the letter that is with accent. The code that I have here is
my javascript does not working after I retrieve a record that contains square symbol in the database. The square symbol should be a newline in a textarea. This is how the record "looks" in the table: [URL]
I am inserting the record using ASP and the value with square symbol is the value from a textarea with newline/enter. After that I retrieve the value using ASP and pass it to javascript and then the page is not working. If I retrieve other record which contain no square symbol then the script is working.