Forum: JavaScript / DHTML / AJAX Apr 20th, 2009 |
| Replies: 1 Views: 331 I don't think you can do that.
The entrance page will not be able to be AJAX-loaded. The entrance page will need to "host" the AJAX call. Unless of cos, you use a dummy entrance page for every URL... |
Forum: JavaScript / DHTML / AJAX Jul 22nd, 2008 |
| Replies: 17 Views: 7,731 In any case, your method is indeed clever, which I just learnt recently. But the problem is illustrated below:
<script type="text/javascript">
function AddRow()
{
var hobby =... |
Forum: JavaScript / DHTML / AJAX Jul 14th, 2008 |
| Replies: 14 Views: 1,716 Oh man... that's so confusing. |
Forum: JavaScript / DHTML / AJAX Jul 14th, 2008 |
| Replies: 14 Views: 1,716 Hi,
I can't run your code because it's not HTML, and I don't have ASP server.
I'm predominantly at PHP and only wrote in ASP once or twice, so at best, I am not an ASP expert but the webpage... |
Forum: JavaScript / DHTML / AJAX Jul 14th, 2008 |
| Replies: 14 Views: 1,716 Some of the events you can make use of
<input onclick="" onfocus="" onblur="" onchange="">
and to reference these in javascript,
<script>
function validate(objForm) |
Forum: JavaScript / DHTML / AJAX Jul 12th, 2008 |
| Replies: 14 Views: 1,716 you will need a little bit of css as well as a few js functions to deal with the onchange and onblur events.
you should take some time to view source which would explain much of the behaviors... |
Forum: JavaScript / DHTML / AJAX Jul 12th, 2008 |
| Replies: 2 Views: 1,758 You probably need to store the URLs in a database to that you can retrieve and display them everytime people visit your pages.
Try PHP + MySQL. Don't think will involve javascript. |
Forum: JavaScript / DHTML / AJAX Jul 12th, 2008 |
| Replies: 17 Views: 7,731 Thanks to everyone with the help and especially SOS for the neater code suggestions. I think i can solve my problems from here on already.
anyway, nice efficient for loop here: |
Forum: JavaScript / DHTML / AJAX Jul 11th, 2008 |
| Replies: 17 Views: 7,731 That was finer than my original addRow code! I added another function and a button to illustrate my problem.
function TryToGetName(tableId)
{
var tblElem =... |
Forum: JavaScript / DHTML / AJAX Jul 10th, 2008 |
| Replies: 17 Views: 7,731 I need to change the names to
hobby[0], hobby[1], hobby[2], hobby[3] ...
so that I can pass POST the values to a PHP script... |
Forum: JavaScript / DHTML / AJAX Jul 10th, 2008 |
| Replies: 17 Views: 7,731 But the implementation between IE and FF doesn't seem like standard.. =( something so simple they have to make it so complicated. I have been tweaking my code so many times just to accomodate both... |
Forum: JavaScript / DHTML / AJAX Jul 9th, 2008 |
| Replies: 17 Views: 7,731 Hi LuckyChap,
I tried googling. and I think I still have problem.
The problem occurs in IE7.
After changing the name using
clonedfield = document.getElementsByName('hobby[0]')[1]; |
Forum: JavaScript / DHTML / AJAX Jul 9th, 2008 |
| Replies: 17 Views: 7,731 Thanks that was very helpful!
But just to confirm, must I always start with document.xxxx? can't I use other objects like newRow? |
Forum: JavaScript / DHTML / AJAX Jul 8th, 2008 |
| Replies: 17 Views: 7,731 Hi,
I have a table in a form like this
<form>
<table>
<tbody id='target'>
<tr id="dolly"><td><input name="hobby[0]" /></td></tr>
</tbody> |
Forum: JavaScript / DHTML / AJAX Jul 8th, 2008 |
| Replies: 3 Views: 1,551 Hi,
I now find my problem, thanks to s.o.s. and firebug.
It's to do with wrong nesting for <table> and <form>
I always thought it is ok to nest as such:
<table>
<form> |
Forum: JavaScript / DHTML / AJAX Jul 8th, 2008 |
| Replies: 3 Views: 1,551 Thanks s.o.s,
The way I make the switch in
<td id="ajax_field"><input type="text" name="hobby"></td>
as to use
function show_select() {
// AJAX transaction ... |
Forum: JavaScript / DHTML / AJAX Jul 7th, 2008 |
| Replies: 3 Views: 1,551 Hi there,
I'm quite new to AJAX and need some help on a peculiar firefox behavior regarding forms submission.
I have have an input field
...<td id="ajax_field"><input type="text"... |