- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 11
- Posts with Upvotes
- 11
- Upvoting Members
- 10
- Downvotes Received
- 4
- Posts with Downvotes
- 3
- Downvoting Members
- 3
71 Posted Topics
I had a difficult time figuring out how to get or test the last character of a string with javascript, so figured I would post it once I found out in case it helps someone else. I found plenty of removing the last character, but not for just checking what … | |
Re: It would seem there is a problem with a proper closing...a syntax error. There are too many for me to trace, you can try formatting it better in something like notepad++ to see if that helps locate it. In the following screen, on the far right box, you'll see a … | |
Re: [QUOTE]Dofollow blog:- blogspot.com wordpress.com alivenoted.com bitcoment.com [/QUOTE] Not necessarily dofollow blogs. A lot of blogspot and wordpress blogs are not do follow. I've never looked into the others listed. Many times the system is set up one way as default, but blog creater can change settings. There is a nice … | |
I have a sticky header on my page by setting CSS to relative and z-index. When I go to print, the first page prints fine (header, with page content starting just below header). The following pages has header on top of content. How can I force content below header on … | |
iPhone and more can automatically recognize phone numbers and make them an active link to click and initiate a call to that number. I can do this on many webpages, but not in myTinyTodo task list. Anyone know what might be preventing the phones from being able to recognize the … | |
Re: I couldn't login. Tells me the password for 'user' is incorrect. | |
Re: give the input field an id. Set the combo box to call a function on change and pass the value to the function. Set that function to update the text field by id with the value received. Can you figure it out from that or do you need all the … | |
Re: The problem is in your document.ready script: [CODE]$("#datepicker").datepicker();[/CODE] This is returning an error that it is not a function. I'm not sure how the actual call should be, but check the documentation on that. | |
Re: There is a lot to try and put it all together for you in code. The idea though is to put the following under your form: [CODE]<div id="chargeDisplay"></div>[/CODE] Then in your function or change action you can do the math and display the total inside the div: [CODE]document.getElementById('chargeDisplay').innerHTML = computedTotal;[/CODE] … | |
How can I get an image to have it's own hyperlink that is inside of a clickable div? [CODE]<div id="clickable" onclick="window.open('http://www.daniweb.com');return false;"> <p>I love clickable images!</p> <a href="http://www.google.com"><img src="someimage.png" /></a> <p>too bad they don't click in a clickable div</p> </div>[/CODE] If I try the above then the DIV is always … | |
Re: HTML line 19...typo or is quote actually missing around name? <input type="text" name=lat" id="lat" /> should be: <input type="text" name=[COLOR="Red"]"[/COLOR]lat" id="lat" /> | |
Re: It does not need to be in it's own <script> tag, it's not related to the code beneath it, and they can both be put in an external .js | |
I have 2 very similar pages. The first loads fine in IE9, the second does not. I get no error message on screen or in developer tools. Page just does not load: good: [url]http://www.mfwbooks.com/products/M50/40/10/0/1[/url] bad: [url]http://www.mfwbooks.com/products/M50/40/15/0/1[/url] Any ideas? If I turn on compatibility view for the site, the second page … | |
Re: Here is a quick step-by-step to creating a simple/basic linkwheel: http://www.ehow.com/how_5334096_build-wheel-traffic.html | |
[url]http://www.gwftn.org/frame.html#projects[/url] In the bottom left of the content of the page is a link for "virtual prayer walk". If you click on that, an iframe is displayed. In other browsers, you can navigate the iframe just fine (using the go forward/ go backward links). In IE, it does not change … | |
Re: the idea here would be to have the button in _1 call a function in the parent and that parent function will then set the src of _2. Hope that's enough to get you going. I don't have time to write out the code for you. | |
Re: your function works fine for me. Is there a link you can provide to see it in action? You could try putting in alert('first'); as the first line of your function and then alert('last'); as the last line of your function to see if they are getting called without a … | |
Re: It might be easier to use PHP to write your javascript. You can also play around with this to see if you can get what you are after: <script type="text/javascript" src="myscript.php"></script> Otherwise, AJAX? | |
I've got a simple link that opens a mail message: [CODE]<a href="mailto:help@solutions.com"[/CODE] If I select a new mail message in Outlook, it opens and works fine, using the "Normal" format style for the body text. But, with the mailto: link, it opens a new message using "Paragraph" format style for … | |
I have some customers saying certain pages never load for them and actually freeze their computer or make their internet connection drop. I asked one if they knew if they were using Internet Explorer as their internet browser and she said: "no, google". I was surprised and said: "oh, you … | |
Re: ALWAYS? I don't think it's always a bad idea, but in general your site will not do well with SEO if it is just several spliced images. The crawlers eat letters. The more letters on your site the longer they will stay around and play and realize how much fun … | |
Re: <body align="center"> Does that do what you want? How about: <body style="text-align:center;"> | |
Re: can you explain it differently, I do not understand what you need. Do you already have this working as you want: "I have a field in my form, which is basically a text box. But as the user start to type it will show a list of matching items, fetched … | |
Re: i have been very happy with hostgator fatcow looks good too. | |
Re: your form onsubmit needs to return false if nothing entered: [url]http://www.isolani.co.uk/articles/simpleJavascriptAndForms.html[/url] Also, I would recommend putting the comment button below the comment form. As is, when I scroll all the way down, then click the comment button, I have no idea the form was displayed...unless I happen to notice the … | |
Re: rough code to give you idea of what you could do: [CODE]<html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> function updateValues() { rate1 = document.getElementById("rate1").value; rate2 = document.getElementById("rate2").value; rate3 = document.getElementById("rate3").value; quantity1 = document.getElementById("quantity1").value; quantity2 = document.getElementById("quantity2").value; quantity3 = document.getElementById("quantity3").value; document.getElementById("amount1").innerHTML = rate1 * quantity1; document.getElementById("amount2").innerHTML = rate2 * quantity2; document.getElementById("amount3").innerHTML … | |
Re: i can't see what is wrong for sure that is causing this. The source of the image is correct in the source for the page, but inspecting the element shows no source. That would seem like there is some javascript overwriting the img attribute. There are 2 things I would … | |
Re: [B]period=$('#'+id+'_due').val();[/B] if 'id' is a number, then it won't work. Adjust your tag id's with a leading letter/word. For example: <p id=32>my paragraph</p> will cause problems with jquery. Instead use: <p id=myParagraph32>my paragraph</p> | |
Re: can you use onchange instead of onkeyup? | |
Re: There were a couple issues. See code below and compare to see what needed to change. [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script type='text/javascript'> function showdiv(namer){ divname=namer; show(); } function show(){ document.getElementById(divname).style.display='block'; document.getElementById(divname).style.overflow='visible'; var lastdiv=divname; } function closediv(){ if (lastdiv) { document.getElementById(lastdiv).style.display='none'; var lastdiv=''; } } … | |
Re: I'm seeing gdir not defined message in your .js file for this line: gdir.load("from: " + fromAddress + " to: " + toAddress); | |
Re: where is the code for the text field? You are getting that element by id: AFB_FORM_COURRIEL but I do not see that element in the code. Is there a link we can see? | |
Re: this seems like the right forum to me | |
Re: any chance you can provide a link? | |
Re: You'll want to set your div css to display: none in the first function: $('div.ldd_submenu').css('display','none'); Then in your jquery hover: $('div.ldd_submenu').css('display','block'); And then set function for the handlerout back to display: none. Something like this: [CODE]<html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(function(){ $('ul.ldd_menu .topLink div.ldd_submenu ul').hide(); [COLOR="Red"]$('div.ldd_submenu').css('display','none');[/COLOR] $('li.topLink').hover(function(){ [COLOR="Red"]$('div.ldd_submenu').css('display','block');[/COLOR] … | |
Re: you need to have an onchange event in your dropdown call a function: [CODE]<select name="selected_category" id="selected_category" onchange="selectChange();"> [/CODE] you can change your jquery to: [CODE]function selectChange() { var selection = $("#selected_category option:selected").val(); if(selection == 'new_category') { $('.works').show(); } }[/CODE] no need to put the function in the document.ready but you … | |
Re: <script language="javascript" type="text/javascript"> does not need to be in your /resources/viewComment.js file line 1 and the last line 72 can be removed as well: </script> | |
Re: shouldn't line 7 be: allForms[i].onSubmit = submitForm(); instead of: allForms[i].onSubmit = submitForm; | |
Re: Server side include. Put the code for the menu in a separate file and include it in each page. When you update that one include file, it will update all pages that have the file included, without having to go update each page manually. <!--#include file="included.html" --> or <!--#include virtual="/directory/included.html" … | |
Re: CSS Is the TOC in a div or table? What you want is a style of position: fixed. For example: [CODE]<div style="position: fixed" id="theTOC"> - section 1 - section 2 ... </div>[/CODE] | |
Re: If you can use jquery: [url]http://api.jquery.com/trigger#eventdata[/url] If no jquery look into event.keycode=13 Since you want the filtering when you open the page, call a function with onload event in the body tag and in that function "simulate" a keypress. Need to know your keycode? [url]http://www.asquare.net/javascript/tests/KeyCode.html[/url] | |
Re: If I understand correctly you are basically wanting the link to "show" a text box with some text in it. You could set up your page with the links and text boxes in place and put your text boxes to display none: [CODE]<input type="text" id="myTextBox" value="my textbox text" style="display: none;">[/CODE] … | |
Re: does dropping/removing the extra } at the end of line 8 help? Can you use Firefox error console and see if there are any errors? | |
Re: Hey new_developer, Sure is great to get a solid answer like that, huh!?! This is a great forum. Please be sure to marked this thread as solved, and give the responder's post a bump up (the up arrow under the Permalink). Thanks! | |
Re: Are you wanting to pass all the values to the function or have all the values returned from the function? | |
Re: what you are after is a confirm box ([url]http://www.w3schools.com/js/js_popup.asp):[/url] [CODE]<html> <head> <script type="text/javascript"> function show_confirm() { var r=confirm("Press a button!"); if (r==true) { alert("You pressed OK!"); } else { alert("You pressed Cancel!"); document.getElementById("confirmThis").value = " "; } } </script> </head> <body> <select onchange="show_confirm()" name="confirmThis" id="confirmThis"> <option value=" ">Please Select</option> <option … | |
Re: This should do the trick: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script> var a=0; function add(){ a++; var cedvel=document.getElementById("tab"); if(a>cedvel.rows.length){ a=cedvel.rows.length; } var sira=cedvel.insertRow(a); var isare=sira.insertCell(0); var solteref=sira.insertCell(1); var sagteref=sira.insertCell(2); var birinci=document.createElement('input'); birinci.type='checkbox'; isare.appendChild(birinci); solteref.innerHTML=a+1; var ucuncu=document.createElement('input'); ucuncu.type="text"; … | |
Re: It looks like it's the quotes mixed in the string giving the problem. They need to be escaped or better still, set a variable equal to the string you need and then make the innerHTML equal to that variable. | |
Re: If I understand what you are asking, then you can not do this. The ActiveX control pop-up is an individual user browser security setting. Thus, for security reasons, you can not automatically allow ActiveX. |
The End.