Forum: JavaScript / DHTML / AJAX Nov 27th, 2008 |
| Replies: 1 Views: 1,235 It works if I replace the single quote with a "\'" (backslash before the single quote. So
$Title = str_replace("'", "\'", $Title);
var Title = <?php echo($Title) ?>;
works fine |
Forum: JavaScript / DHTML / AJAX Nov 27th, 2008 |
| Replies: 1 Views: 1,235 I have a database of book titles where string values are stored. A php script reads the data and displays them. The problem is happening when a Book title contains the ' character - as apostrophy... |
Forum: JavaScript / DHTML / AJAX Sep 1st, 2008 |
| Replies: 2 Views: 800 Thanks essential. I will try it and let you know |
Forum: JavaScript / DHTML / AJAX Aug 30th, 2008 |
| Replies: 2 Views: 800 The client needs to select a vendor from a drop down list (Select). The list is quite long, so it takes some time to load and scroll. It would be better if there was a way for the client to type in... |
Forum: JavaScript / DHTML / AJAX Feb 14th, 2008 |
| Replies: 11 Views: 3,965 Thanks serkansendur and DangerDev. The problem was with the 'document.images(...)' part. I changed it to document.images[...] and it's working fine.
The display of '(' and '[' is almost similar in... |
Forum: JavaScript / DHTML / AJAX Feb 13th, 2008 |
| Replies: 11 Views: 3,965 I don't think you understood the problem. The problem has nothing to do with arrays or getElementById or brackets. The problem is setTimeout function is working in IE and Opera and not FF or NN.... |
Forum: JavaScript / DHTML / AJAX Feb 12th, 2008 |
| Replies: 11 Views: 3,965 I have created a timer function using setTimeout. The function works perfectly in IE and Opera but doesn't work in FireFox or Netscape 6. I checked out my Javascript book where it says setTimeout is... |
Forum: JavaScript / DHTML / AJAX Jun 12th, 2007 |
| Replies: 9 Views: 14,875 Thanks ~S.O.S~ and MattEvans for your help and suggestions. I am relatively new to CSS so often not sure which is the best solution. Thanks for guiding me |
Forum: JavaScript / DHTML / AJAX Jun 12th, 2007 |
| Replies: 4 Views: 2,575 Thanks Stymiee, MattEvans and ~S.O.S~ . |
Forum: JavaScript / DHTML / AJAX Jun 11th, 2007 |
| Replies: 9 Views: 14,875 Thanks for the help. But I am not getting why
<a href="_blank" ... >
instead of
<a href="www.abc.com" ... > . What is the significance ? |
Forum: JavaScript / DHTML / AJAX Jun 11th, 2007 |
| Replies: 9 Views: 14,875 How can I change the mouse cursor ? In certain cases, I am displaying the links without the underlines etc. When the mouse pointer is over such links (onMouseOver), I would prefer to change the... |
Forum: JavaScript / DHTML / AJAX Jun 11th, 2007 |
| Replies: 4 Views: 2,575 I am using some common Javascript functions I wrote that are required in several pages. I would prefer to have the functions in a single .js file and link to this file from the required web pages.... |
Forum: JavaScript / DHTML / AJAX May 3rd, 2007 |
| Replies: 6 Views: 12,016 "Putting it under something" = Putting it behind another window ? That's fine with me. But how do I do that ? By setting the z-order of the window ? If it shows in the taskbar, it's acceptable. |
Forum: JavaScript / DHTML / AJAX May 2nd, 2007 |
| Replies: 6 Views: 12,016 Sorry, it's not working. I am getting the error
"PopupWindow is undefined"
Here's the code (with what I was using earlier)
var newWindow ;
var v_Options;
var v_Bars;
v_Bars =... |
Forum: JavaScript / DHTML / AJAX May 1st, 2007 |
| Replies: 6 Views: 12,016 I am developing an intranet application, in which, in some pages, when the user selects an option, I am using a pop-up window to retrieve the data and displaying it in the main page. The pop-up... |
Forum: JavaScript / DHTML / AJAX Apr 27th, 2007 |
| Replies: 0 Views: 2,072 Can I transfer some data, which the user enters into a pop up window, to the page which called the pop-up window ? The Main page is in a frame. When the user clicks a button on the main page, a... |
Forum: JavaScript / DHTML / AJAX Apr 26th, 2007 |
| Replies: 6 Views: 4,557 I read in a book that the browser ignores all option element style settings inside a select. Not sure if it can be done at all. Will try some experiments. Will post here if succeed. |
Forum: JavaScript / DHTML / AJAX Apr 24th, 2007 |
| Replies: 6 Views: 4,557 Sorry, it's still not working
<STYLE type="text/css">
.GoRight {
text-align: right ;
}
</STYLE>
newOpt = document.createElement("option");
newOpt.text = <%=mValue%> ; |
Forum: JavaScript / DHTML / AJAX Apr 23rd, 2007 |
| Replies: 7 Views: 10,798 What's selfish about it ? It's for an Intranet application and generating some reports to a browser and printing it. Printing the URL at the bottom looks both silly and unprofessional.
And even it... |
Forum: JavaScript / DHTML / AJAX Apr 23rd, 2007 |
| Replies: 6 Views: 4,557 I tried your solution, but it is not working. Here's the code snippet
Declaring the Class
<STYLE type="text/css">
.GoRight {
text-align: right ;
}
</STYLE> |
Forum: JavaScript / DHTML / AJAX Apr 20th, 2007 |
| Replies: 6 Views: 4,557 I have 3 SELECT elements, one of which contains text and the other two numbers. Values in all 3 selects are generated dynamically from ASP. The Option elements in the selects are being added by a... |
Forum: JavaScript / DHTML / AJAX Apr 16th, 2007 |
| Replies: 7 Views: 10,798 How can I remove the URL information that is printed at the bottom of the page when a Web page is being printed ? Can this be done by Javascript or any programming method ? |
Forum: JavaScript / DHTML / AJAX Dec 28th, 2006 |
| Replies: 0 Views: 4,846 I have a login screen in which the user has to specify the User Name and Password. There is a submit button which accepts the values and passes to the server for authentication. I would like to allow... |
Forum: JavaScript / DHTML / AJAX Nov 7th, 2006 |
| Replies: 3 Views: 3,532 Thanks to both of you. MattEvan's solution should be what I am looking for (validating from the client side). I am using ASP for the server side coding, where such validations are a breeze :-).
I... |
Forum: JavaScript / DHTML / AJAX Nov 6th, 2006 |
| Replies: 3 Views: 3,532 How can I trim a string i.e. remove leading and trailing spaces ? I have a form validation which requires the user to specify a value, i.e. not leave the field blank. I want to ensure that the user... |
Forum: JavaScript / DHTML / AJAX Nov 1st, 2006 |
| Replies: 2 Views: 1,274 |
Forum: JavaScript / DHTML / AJAX Oct 31st, 2006 |
| Replies: 2 Views: 1,274 I have a single form in my web page. The Form is defined as
<FORM action="somepage.asp" method="post" id="Form1" >
<INPUT TYPE="Text" Name="txt1" id="txt1" size=5 >
</FORM> |
Forum: JavaScript / DHTML / AJAX Mar 8th, 2006 |
| Replies: 0 Views: 1,783 I am using an image map on my site. Clicking on the image will activate a javascript function. When the mouse is over the image, the status bar show "javascript: <function_name>". I want the status... |