Delphi For PHP Forums       


Go Back   Delphi-PHP Forums > Programming > Javascript and Ajax
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

Javascript and Ajax Questions and information about working with Ajax and Javascript in Delphi for PHP.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 30th December 2008, 03:44
fox fox is offline
D4PHP Newbie
 
Join Date: Dec 2008
Posts: 5
fox is on a distinguished road
Default [help me] ajax on dbgrid on window

hello all,

i have a problem,

i got an error like this "...which layer....."
I got this error when i:
1. i put a window component on form
2. i put a dbgrid (grdPureq) component on window
3. i add javascript OnRowChanged event, then add this code:
?>
products_id=grdPureq.getTableModel().getValue(0, grdPureq.getFocusedRow());
params=products_id;
<?php
echo $this->grdPureq->ajaxCall("fromNav");
4. I have had ajax enable true
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 30th December 2008, 14:10
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,268
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

When a dbgrid is on a window you have to be specific in your call.

echo( $this->grdPureq->ajaxCall('fromNav', array(), array( 'grdPureq' ) );

You can include as many components as you like/need to get updated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 31st December 2008, 02:45
fox fox is offline
D4PHP Newbie
 
Join Date: Dec 2008
Posts: 5
fox is on a distinguished road
Default

Quote:
Originally Posted by 405hp View Post
When a dbgrid is on a window you have to be specific in your call.

echo( $this->grdPureq->ajaxCall('fromNav', array(), array( 'grdPureq' ) );

You can include as many components as you like/need to get updated.

hello "405hp".

I have tried that way, but the error still.

I tried from the sample "Window". Let me show the code & error:

error pic

Last edited by fox; 31st December 2008 at 02:49.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 31st December 2008, 03:01
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,268
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

Your actual error is where it jumped out of javascript

property not found windowsample->windowsample

For whatever that means
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 31st December 2008, 06:01
fox fox is offline
D4PHP Newbie
 
Join Date: Dec 2008
Posts: 5
fox is on a distinguished road
Default

Quote:
Originally Posted by 405hp View Post
Your actual error is where it jumped out of javascript

property not found windowsample->windowsample

For whatever that means
even i did't write any windowsample property code.

405hp, can you attach the full code of window sample which has fully run the callAjax to update Edit1?

Please.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 31st December 2008, 06:32
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,268
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

Looks like you are putting your stuff on top of an existing script (windowsample) and there is something wrong with it.

Start over with a new form and build it from scratch. If you still have problems then you can ask for help again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 5th January 2009, 02:49
fox fox is offline
D4PHP Newbie
 
Join Date: Dec 2008
Posts: 5
fox is on a distinguished road
Default

oke "405hp". It works
I do ->ajaxCall("eventName",array(),array("Edit1"));

But, when i click the dbGrid once again the error appear:
mysql_connect ..... can't connect to database.

But in my application i use mssql connection.

How to solve that problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 5th January 2009, 02:49
fox fox is offline
D4PHP Newbie
 
Join Date: Dec 2008
Posts: 5
fox is on a distinguished road
Default

oke "405hp". It works
I do ->ajaxCall("eventName",array(),array("Edit1"));

But, when i click the dbGrid once again the error appear:
mysql_connect ..... can't connect to database.

But in my application i use mssql connection.

How to solve that problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 5th January 2009, 03:06
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,268
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

Looks like a bug... You are the second one to have it that I know of

MSSQL - MySQL confusion

send an email to
support@qadram.com and point them to this thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 10:38.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use