|
Hi there,
I am new at ajax. I have a simple form of registration in php language.In that there are two fields, username and password. Now when I entered the username, I have to confirm it with the mysql database that it is already exist or not. I have used dojo ajax framework for javascript.
So can I get the value of the database in JavaScript? If yes then how?
Hope for the good reply in a short time,
Thank you in advance.
|
|
|
|
|
JavaScript should NEVER directly interact with a database, but you could have it call your PHP code and then that could do the validation.
BTW if you are just starting with AJAX i would not use a framework, rather I would get to know the concept first before letting other people write which script I use.
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
Hi all,
I have tried creating separate ASP pages in Interdev 6.0. They are working fine. I now want to ceate a new project in Interdev.
I tried creating it but the first wizard asks for name and the second wizard wants to specify server and mode. I am curently using IIS on my local machine...
Plz let me know wat should I enter in the edit box....I tried entering localhost, but it pops up an error message.
Need some help in this.
Thanks in advance.
Regards,
Shraddha
|
|
|
|
|
I want to add text edit controls(like bold, italic etc used in yahoo mail) in a email compose
page.I want to take a richTextBox control to write email message text.I
want code in PHP.
Bharat Bhusanam
|
|
|
|
|
|
Well - I'm not sure exactly where this question belongs, but I'll try here first.
I've got a control inside a dll called pRaiseBox.dll - created in VB6. Originally, this control was called by a Win32 VB app using the createobject method. I can also create it in VB script just fine:
'works just fine
dim box
set box = CreateObject("pRaiseBox.cRaiseBox")
dim reason
reason = box.showform()
'works just fine
Now I am trying to use this same control, but I am trying to instantiate it via Javascript:
var TextEntryBox = new ActiveXObject("pRaiseBox.cRaiseBox"); //works
var NoteReason = TextEntryBox.showform(); //box pops up but hangs
but when I show the form, it hangs. By that I mean the control is visible, but if I put the mouse over it, I get nothing but an hourglass and ultimately I have to kill the browser.
I'm not sure of the differences between CreateObject and new ActiveXObject (from what I can tell, there's very little), but can anyone think of any reason this might happen? Perhaps I need to recompile this dll with a different setting in the project?
Thanks!
Marcus
Marcus Spitzmiller
You will never hear me say, "I listen to pretty much everything." That is for people who don't care what goes in their ears.
|
|
|
|
|
I have...
-formA (web form) it contains a listbox
-formB (pop up window from formA) using window.showModalDialog in a javascript within a "script" tag in form A.aspx file
what i want is to take two value of text boxes in formB
and use them to add a new list item in formA listbox
how can i implement that?
Thanx in advance
Best Regards
3ala2
|
|
|
|
|
Hello,
I am really having a struggle updateing an access file on my website.
This site is not hosted by me. I know that it has to happen Server Side, but how can I manage this without using ASP.
Any suggestion will be greatly appreciated.
Thanks
Gert Nortje
|
|
|
|
|
Snitch001 wrote: I am really having a struggle updateing an access file on my website.
What type of access are we talking about here? Are you running IIS or Apache? If you can't answer this please provide your host name and the plan you are on.
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
It is Apache. The access I am talking about is a .mdb file.
The website is created in php and I want to edit the .mdb file.
Thanks
|
|
|
|
|
Snitch001 wrote: .mdb
Am I getting confused or is that a MS Access file?
If so then Why?
PHP/MySQL is a much better combination for any web development then PHP/Access.
Anyway I will try help you as best I can, although I haven't really touched Access since Win98....
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
hi guyz i need help desperately. i have a project to design a website for a small company using any technology. the website has to be dynamic to be good enough for a final year project. please interested candidates should get intouch as soon as possible. you can make up ideas on what type of site to design as long as it's dynamic. the site must have a database. and all source codes have to be sent to me to be able to edit. I am only using the site for a project and i am not going to host it. plz interested canditates should pm me as soon as possible for more details
|
|
|
|
|
Before I hit the spam button, please confirm that you have just asked people to do a project for you.
If this is the case i would advise you delete that post. This site is not for people who are too lazy to do their own work.
You can always ask for ideas or help in specific subject, but the notion that you intend for someone else to do work for you is very irritating.
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
|
George L. Jackson wrote: I am smelling spam also!
Sorry, I meant for that to read:
This site is not for people too lazy to do their own work.
Not what was written, I have modified it.
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
Actually, I understood you main point and knew you had a typo in your message. I believe we are here as on-line tutors not a programming factory. Thanks for your comment.
|
|
|
|
|
Hi
I am not sure if this is the correct forum category in which to pose this question, but I shall go ahead anyway..if it is not then, please advise..
Could anyone advise me as to how I might, if it is at all possible, define a hyperlink in an HTML document that supports the following characteristics:
1. The target is a plain ASCII file that should be displayed in a new window, say for example using WORDPAD or NOTEPAD and not explorer, so that plain text formatting is honoured.
2. That if the user right clicks the link, a/the popup menu provides the ability to view or 'run' the target; which will be launched by own application.
Note, the filetype, for example '.ABC' of the target, has already been registered/associated with my application.
I would like to be able to offer the two options; so that the user can view the target file or launch my application against the file.
Best regards.
James.
|
|
|
|
|
Laing,James wrote: The target is a plain ASCII file that should be displayed in a new window, say for example using WORDPAD or NOTEPAD and not explorer, so that plain text formatting is honored.
Well you can Half do this. You can get a browser to honor the plain text formating by naming the file *.txt (Astrix is wild card) or you can set the headers on the output to a text file. A PHP example is:
<?php<br />
header('Content-type: text');<br />
?><br />
Standard text here.<br />
and Here.<br />
And perhaps even here.<br />
so this tells the browser to render the content as text.
Laing,James wrote: 2. That if the user right clicks the link, a/the popup menu provides the ability to view or 'run' the target; which will be launched by own application.
Note, the filetype, for example '.ABC' of the target, has already been registered/associated with my application.
ok this you can do this IF the application is installed on the clients computer.
Say you had a file you wanted to be rendered as a PDF, well again you use the content you use the Content-Type Headers.
<?php<br />
header('Content-type: application/pdf');<br />
<br />
header('Content-Disposition: attachment; filename="default_filename.pdf"');<br />
<br />
?> <br />
<br />
This will be formatted as a PDF file.....
I hope this is what you wanted....
BTW I am sure that this works with AJAX.
Finally remember that the headers MUST be the first thing sent down to the browser, therefore this will NOT work if anything is sent down before it, including blank lines.
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
|
I need to build a flash animation that gets its data from a Delphi 5 host application. I am pretty sure this can be achieved using the FSCommand from Flash but I dont know how to go about building a small test app to prove this?
Delphi sends flash a value say '5' and then flash uses this to run an animation on the stage and in return tells Host when its completed?
Any tips or tutorials that you guys are aware about please let me know.
Cheers
|
|
|
|
|
Dear All,
how can I prvent user from entering specific pattern such as "1111" , "5555" and "123456789" , usin regular expression control.
In other word I don't want user to repeat the number 4 or 5 times in input box.
Ex: 1111 wrong
5555 wrong
1246 right
Thanks for reply...
|
|
|
|
|
(? <num>\d)(?=\k<num>)){3,}
This expression is true when it finds a number that is repeated at least 3 times.
The number 1111329 contains the number one which is repeated 3 times.
The above expression will not evaluate 111329 to have a match. I have not tested this expression by the way.
George
|
|
|
|
|
|
You want to make a website with the navigation in ajax
(exemple <a href="javascript:LoadPage1()"> page1 </a> refreshing the mainarea of your page to show the right page)
This approch brings a very reactive website but brokes all standards for the users :
Maybe your users want to open your page in a new tab or in a new window
Maybe your users disables javascript
So I give you a very small and simple implentation of a link which :
- Launch a javascript(ajax) method when the user just click on it with javascript enabled
- Make a classic navigate when the user just click on it without javascript
- Make a classic navigate on a new tab/window if the user click on it with :
* the middle button
* CTRL pressed
* SHIFT pressed
-----------------------------------------------------------
<!-- [reusable functions] -->
<script type="text/javascript">
function SmartLink(evt, sender, ajaxJs)
{
var ctrlid = sender.id;
var ctrlhref = sender.href;
sender.href='';
var btn = evt.button;
var IE=navigator.appName=='Microsoft Internet Explorer';
if(!IE){ btn ++ ;}
var classic = false;
if((btn < 2) && (!evt.ctrlKey) && (!evt.shiftKey))
{
eval(ajaxJs);
setTimeout("SmartLinkRestaureHref('"+ctrlid+"', '"+ctrlhref+"')",1);
}
else
{
sender.href=ctrlhref;
}
return false;
}
function SmartLinkRestaureHref(cid, url)
{
document.getElementById(cid).href = url;
}
</script>
<!-- [/reusable functions] -->
<script type="text/javascript">
function MyAjaxLink1()
{
// my ajax method
alert('i can make a ajax call here');
}
</script>
<a id="SmartLink1" href="http://www.google.com" onmousedown="SmartLink(event, this, 'MyAjaxLink1()');">my smart link 1</a>
-----------------------------------
very simple here but maybe a good thing to be packaged
-- modified at 6:12 Wednesday 15th November, 2006
|
|
|
|
|
You do realize this that is not how you post an article?
Welcome to CP BTW
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|