first off I am pretty much a newbie to web development but especially to java script so go easy with the tecnical terms I am trying to implement an image carousel but I cant get it to work and it is altering the width of my div in the HTML. I have the slider in div id="content", when I dont have the JS file in the folder the div shows up fine but when I have the JS file in the right place it resizes it to 1024*50 so none of the content can be seen. I was wondering if anyone could make sense of the JS file and see if anything would be causing that? I must also point out that I havent written this code, I have copied it from the web.
As you can see I am totally lost, I have been trying to work this out for several weeks now without any progress, I need to make about 20 of these displays each include 4 buttons that will none/block the related text area below the display for a visual please see: Code:
Code: <select class="g4" NAME="bonustype" id="bonustype" style="width:180" <option VALUE="select">Select an option</option> <option VALUE="signon">Sign-on bonus</option> <option VALUE="refer">Refer a friend bonus</option> </select> </div>
<table width=190px align=center><tr><td><div id="select" align=justify class=red>After selecting a bonus type, the criteria relating to that bonus will appear here.</div></td></tr></table>
<div id="signon" style="display:none;">SHOW SIGN ON CRITERIA</div>
<div id="refer" style="display:none;">SHOW SIGN ON CRITERIA</div>
However, at present I cannot get the 'signon' or 'refer' div's to appear. When the php page is loaded, 'After selecting a bonus type, the criteria relating to that bonus will appear here' will appear on the screen. When I select a different option for the 'bonustype' combo box, the writing will dissapear but nothing will show up instead. When selecting 'Select an option' again, the writing that appeared at the start does not show up.
I would absolutely love to have the datepicker icon BEFORE the input field. Is there any simple way of doing this? (Or even not so simple... am prepared to have a go at tweaking the code in the .js file if only I knew where to start looking
I'm using jQuery to make ajax calls for content, when I click on a link and pull in the new content, I want the <title> in the <head> to change. I thought that since head and body are both siblings in the DOM I could target the <title> in the same way as a <p> or any other element and write a new value in, using replaceWith() which would then change the text in the tab at the top of the browser but it doesn't seem to work. I even tried adding <title id="title_text"> and targeting #title_text, but it doesn't change that way either. The original title text in the browser tab does change, but to the page uri. After using firebug to see what was going on when using replaceWith(), I saw that replaceWith() was replacing this:
Trying to check how many lines a div has and then alter another to match.
Found this code, but I'm not sure what to do [code]...
Look at Navigation and then look at Animated Menus as an example. When the grey animated menus (div.columnrt) takes up two lines (could be more), need the corresponding left div (div.columnleft) to be same number of lines, so that everything stays lined up. Each of these pairs sits inside of a li element.
Is it possible to alter the query string of the current URL without triggering a page load.
eg. Say you have AJAX pagination, allowing people to change pages without the whole page reloading, just the content of the paginated area. However in case somebody bookmarked the page, they would really only be bookmarking the page 1 - even if they were on page 10.
the way i have the database set up for this is with the following fields: id (the rating's unique id) listingid (the listing that the rating corresponds to) userid (the user that entered the rating) rating (the rating itself)
i use php to communicate with a mysql database. the file im going to write will check to see if there is already a rating entered in from the logged in user. if there is, it will update it. if not, it will insert it, then it will calculate the average of all votes for that listing (rounded up) and return the new rating to the page and set the stars to reflect that rating... ive tweaked the code a bit to represent a 5 star system instead of a 10 star system and also so it can be used multiple times on a page.
heres what ive been playing with:
<!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>
I'm building an application. The goal of this subroutine is that the user can upload an image to the browser, and then enter coordinates (X,Y) to place icons and dots at the specified place. way to draw these dots and icons on an uploaded image?