Hi
I have a problem in my code.
can anybody help me ...
<html>
<body>
<script type="text/javascript">
<?php
$conn = mysql_connect("localhost","root");
mysql_select_db("tr", $conn);
$q = mysql_query("SELECT message FROM messages WHERE to_viewed = '0' ");
if (mysql_num_rows($q)) {
...
Page in question: http://phwsinc.com/our-work/one-rincon-hill.asp
In IE6-8, when you click the left-most thumbnail in the gallery, the image never loads. If you click the thumbnail a second time, then it will load. I'm using jQuery, and here's my code that's powering the gallery:
$(document).ready(function() {
// PROJECT PHOTO GALLERY
...
Hi,
I have a portfolio gallery with thumbnails along the left column and a large image on the right/center column. When the user clicks a thumbnail, this script loads in the large image and displays it in the place of the current image. Of course, there are some awesome animations happening. The script runs perfectly in IE 6 (go figure)...
I would like to store a cookie object with multiple values associated with various keys. Does anyone know if this is possible?
...
Hi All,
I am trying to build a shopping cart site. When a user click add to cart image on the product page, The product title will show a "The product is in your cart" text without reloading the page. I am using session and ajax but no luck so far. I appreciate any helps.
My html cold
<table id="<?php echo $productId; ?>" width="59...
I am getting a JS error and what to know what it means and how to solve it. (JS noob here)
Error: "tId is not defined"
Line of JS with error: "if (s[i].sInstance = tId) { "
More Information
I am using the Data Table (http://datatables.net) jQuery plugin.
I have a two tables with a class of "dataTable" loaded on a page (inside of jQ...
I have a webrequest that returns a html response which has form inside with hidden fields with some javascript that submits the form automatically on pageload ( if this was run in a browser).
If I save this file as *.html and run this file in browser , the java script code automatically posts the form and the output is excel file.
I w...
I would like to clear all radio buttons in a group if I right click on one of them.
How can I implement this using Javascript ?
...
I have a single form input that is for checking domains. Sometimes people type in www. before the domain or .com after the domain name. The service that i use to check availability automatically checks for all top level domains so when people add the .com at the end it becomes redundant. For example the string submitted is domainname.com...
I bought this program that created a pretty nice imageuploader flash script however I can't get the Javascript function close window to close the popup and redirect the original page.
here is the XML piece that defines the url's:
<urls urlToUpload="upload.php?" urlOnUploadSuccess="http://www.home.com/purchase.html"
urlOnUploadFail="ht...
$(document).ready(function() {
$("a").click(function() {
$("#results").load("jquery-routing.php",
{ pageNo: $(this).text(), sortBy: $("#sortBy").val()}
);
return false;
});
});
How do I create an array in jQuery and use that array instead of { pageNo: $(this).text(), sortBy: $("#sortBy").val()}
...
I want to get the current UTC date with Javascript. How can I do this? There seems to be methods for getting the time in UTC:
date.getUTCHours();
How can I get the date?
...
I am dynamically inserting an image into an HTML document using jQuery. Here is the code:
var image_url = "http://www.kottke.org/plus/misc/images/castro-pitching.jpg";
var $image = $('<img src="'+image_url+'" width="50" height="50" />');
$('body').prepend($image);
Notice that the image http://www.kottke.org/plus/misc/images/castro-pit...
Hello friends..
I want to konw whether the browser caching of css and javascript is automatic with php or v hv to do it manually with code..
and wt are the advantages if i manually cache the css and js files to client browser.. using code..
??
If not cache wt will happened ??
...
I have javascript string variable with
var sttr="We prefer questions that can be answered --------------------- not just discussed ---------------------
Provide details ---------------------------- Write clearly and simply --------------------------answer all the question"
please suggest how to split the string into array of sentences...
I need to get the date in a specific locale using JavaScript - not necessarily the user's locale. How can I do this?
I did some research and found date.getUTCMonth() and date.getUTCDate(). How can I use this or something else to get the date in a certain locale?
...
This answer suggested i should put my data in JS instead of a textarea.
Thinking about it i could have scripts and do something like myarray[i]="data" where i is the index of my for loop. However when i click a div how do i find out what i is? I have used var data = $(this).parent('.parent').find('.valuestr').eq(0).val(); which is extre...
I have a page with CKEDITOR.... In the CKEDITOR text area I'd like qTIP to be working, or any JQUERY plugin for that matter to keep this problem simple.
I get this is a crazy hard question but would appreciate any pointers in the right direction.
I have this so far and it isn't working:
$(document).ready(function(){
CKEDITOR.inst...
Calling toString() on the function below returns different strings across browsers. I understand this is because ECMA-262 15.3.4.2 leaves wiggle room for each vendor.
Chrome returns the comments in addition to all syntax. Sadly Firefox 3.6 omits the comments. Based on Firefox's behavior I haven't tested IE, Opera, or Safari.
functio...
Using Javascript, I would like change the background color of the numbers in an ordered HTML list. The background color of the list content should not change.
How can I achieve this ?
...