RE: [PHP] PHP/Ajax Framework - Call for Developers Testers

2009-08-21 Thread Bob McConnell
From: Raymond Irving

 Hi Nathan,
 
 I agree with you, and I believe that there are many persons
 who don't like the idea of hosting all their applications on
 a third party server. IMO there are some advantages and
 disadvantages to doing so but that's a discussion in itself.

Hosted servers are basically a trade off between doing it yourself and
paying someone else to do it. The initial choice is between installing
your own servers or spend the money to rent servers from someone else.
Most of the time it is actually the network bandwidth issue that decides
this. Can you afford a network connection that will handle the peak
loads but be unused most of the time?

But once you decide to pay someone else, you have another set of trade
offs to negotiate. What services do they provide? What systems do they
offer? How do they manage version control and updates? Are they PCI
compliant? There are a wide range of options available in the market.
Not all of them will fit your specific needs.

We just moved most of our servers from a physical hosting service to a
managed service. Where we used to maintain the OS and all software on
the server, the new service now handles that for us. The trade off is
that now we have to settle for the server package they offer. That means
we get the versions of Apache, PHP and PostgreSQL that were included in
the last production release of RHEL. If we want a newer version of PHP,
we have to take over maintenance of that component. It becomes our
responsibility to install the updates, patches, etc., for that
component.

Once you get beyond a private web site these types of decisions become
part of the management process, just as make or buy decisions are part
of the hardware procurement process. There are people out there making a
good living just guiding companies through this decision making process.

Bob McConnell

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP/Ajax Framework - Call for Developers Testers

2009-08-20 Thread Nathan Nobbe
On Wed, Aug 19, 2009 at 8:57 PM, Raymond Irving xwis...@yahoo.com wrote:

 Hi Nathan,

 Many thanks for the feedback. There many other useful features built into
 the API but my favorite is the embedded feature.

 You can see a live example here:
 http://raxanpdi.com/shoutbox-embedded-example.html



ive seen lots of third parties selling components in this manor.  now that
ajax has hit the scene there are some really weird things going on.

i was just on a call yesterday where this company told us about their
service, which is delivered as one of these 'embedded' applications.  this
thing would have its own navigation and display of content on our site in
order to keep folks clicking.

if you ask me, that just feels weird; having some other company like own a
piece of your app...  however, it would be foolish not to admit that this is
the way things are trending and that there will only be more of it to come.

-nathan


Re: [PHP] PHP/Ajax Framework - Call for Developers Testers

2009-08-20 Thread Raymond Irving
Hi Nathan,

I agree with you, and I believe that there are many persons who don't like the 
idea of hosting all their applications on a third party server. IMO there are 
some advantages and disadvantages to doing so but that's a discussion in itself.

The good thing about Raxan's Embeddable Apps is that you have control over the 
source code.  With the ShoutBox example you can download the framwork along 
with the application and copy it to your own servers. No need to host the apps 
on third party servers.

Some benefits of Raxan Embeddable Apps:

1. Works in just about any web page 
2. Easy to deploy and configure
3. Reusable and Shareable

I believe that one day we will see apps like Photo Galleries, Media players, 
File Managers, Catalogs, etc that users can easily download and add to the 
their web pages.

PS. I would like to invite everyone to download the framework, try the examples 
and take a look at the source code. You will be amaze at what you can do with 
Raxan PDI. - You can download it here: 
http://code.google.com/p/raxan/downloads/detail?name=raxan-pdi.1.0.0b2.zipcan=2q=


Best regards
__
Raymond Irving



--- On Thu, 8/20/09, Nathan Nobbe quickshif...@gmail.com wrote:

From: Nathan Nobbe quickshif...@gmail.com
Subject: Re: [PHP] PHP/Ajax Framework - Call for Developers  Testers
To: Raymond Irving xwis...@yahoo.com
Cc: php-general@lists.php.net
Date: Thursday, August 20, 2009, 1:31 PM

ive seen lots of third parties selling components in this manor.  now that ajax 
has hit the scene there are some really weird things going on.

i was just on a call yesterday where this company told us about their service, 
which is delivered as one of these 'embedded' applications.  this thing would 
have its own navigation and display of content on our site in order to keep 
folks clicking.

if you ask me, that just feels weird; having some other company like own a 
piece of your app...  however, it would be foolish not to admit that this is 
the way things are trending and that there will only be more of it to come.

-nathan


[PHP] PHP/Ajax Framework - Call for Developers Testers

2009-08-19 Thread Raymond Irving
Hello,

I've just released Raxan Beta 2 with lots for features for both PHP and Ajax 
developers.

I'm looking for persons to help me test and improve the framework. If you're 
interested, then please download the framework , join the community and share 
your thoughts and ideas. Feel free to send me an email if you have any 
questions.

You can check out the new features here:
http://raxanpdi.com/new-in-beta-2.html


Best regards
__
Raymond Irving


Re: [PHP] PHP/Ajax Framework - Call for Developers Testers

2009-08-19 Thread Raymond Irving
Hi Nathan,

Many thanks for the feedback. There many other useful features built into the 
API but my favorite is the embedded feature.

You can see a live example here:
http://raxanpdi.com/shoutbox-embedded-example.html

Best regards,
__
Raymond Irving


--- On Wed, 8/19/09, Nathan Nobbe quickshif...@gmail.com wrote:

From: Nathan Nobbe quickshif...@gmail.com
Subject: Re: [PHP] PHP/Ajax Framework - Call for Developers  Testers
To: Raymond Irving xwis...@yahoo.com
Cc: php-general@lists.php.net
Date: Wednesday, August 19, 2009, 11:56 AM

On Wed, Aug 19, 2009 at 7:06 AM, Raymond Irving xwis...@yahoo.com wrote:

 Hello,

 I've just released Raxan Beta 2 with lots for features for both PHP and
 Ajax developers.

 I'm looking for persons to help me test and improve the framework. If
 you're interested, then please download the framework , join the community
 and share your thoughts and ideas. Feel free to send me an email if you have
 any questions.

 You can check out the new features here:
 http://raxanpdi.com/new-in-beta-2.html


you have a neat feature list here Raymond, thanks for sharing.

-nathan


[PHP] AJAX with POST

2009-04-04 Thread Skip Evans

Hey all,

At the risk of being told this is a PHP and not a JS list, but 
also knowing the discussions on this list, to the benefit of 
all I believe, very wildly, I'm posting this JS code snippet 
for some advice.


As I posted earlier, my AJAX app that uses a GET to post to 
the server (and get a response), fails on IE with larger data, 
so I thought I'd take a shot at writing a POST function, but 
so far I can get it to get the data back, but the problem is 
by the time the data has come back the function has already 
returned null back to the calling function. What I need this 
function to do is wait for the data to come back and then send 
it back to caller. Here's the function. Any advice would be 
greatly appreciated. (The code to get the appropriate object 
per browser has been omitted.)


http.open(POST, url, true);

//Send the proper header information along with the request
http.setRequestHeader(Content-type, 
application/x-www-form-urlencoded);

http.setRequestHeader(Content-length, url.length);
http.setRequestHeader(Connection, close);

http.send(url);

http.onreadystatechange = function() {//Call a function when 
the state changes.

if(http.readyState == 4  http.status == 200) {
alert('['+http.responseText+']');
return (http.responseText);
}
}
--

Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com

Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX with POST

2009-04-04 Thread Phpster



On Apr 4, 2009, at 17:30, Skip Evans s...@bigskypenguin.com wrote:


Hey all,

At the risk of being told this is a PHP and not a JS list, but also  
knowing the discussions on this list, to the benefit of all I  
believe, very wildly, I'm posting this JS code snippet for some  
advice.


As I posted earlier, my AJAX app that uses a GET to post to the  
server (and get a response), fails on IE with larger data, so I  
thought I'd take a shot at writing a POST function, but so far I can  
get it to get the data back, but the problem is by the time the data  
has come back the function has already returned null back to the  
calling function. What I need this function to do is wait for the  
data to come back and then send it back to caller. Here's the  
function. Any advice would be greatly appreciated. (The code to get  
the appropriate object per browser has been omitted.)


http.open(POST, url, true);

//Send the proper header information along with the request
http.setRequestHeader(Content-type, application/x-www-form- 
urlencoded);

http.setRequestHeader(Content-length, url.length);
http.setRequestHeader(Connection, close);

http.send(url);

http.onreadystatechange = function() {//Call a function when the  
state changes.

if(http.readyState == 4  http.status == 200) {
   alert('['+http.responseText+']');
   return (http.responseText);
   }
}
--

Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com

Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Skip,

You didn't show the code to build the url variable but I would assume  
that since you started with a get method you are tacking data onto the  
end of the URL that is the called Ajax page.


I had the same issue at work correcting the VP's mistake of mixing up  
post and get in his ajax call. The trick is to build the data  
separately from the URL and pass it.


I do an ajax.open(URL) then an Ajax. Send(data) to send just the data.

I can post my entire function set if you want.

Bastien 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX with POST

2009-04-04 Thread Skip Evans

Hey Bastien  all,

...D'oh! Thanks for the catch, yes, I am sending args on the 
URL. But more to my problem, if I switch to POST will IE be 
able to submit more data? If so, I can parse the URL down in 
the function and build a proper post transaction, but my real 
problem is IE can't submit, apparently, more than 2K through a 
GET.


Do you know if POST can handle more?

Thanks tons for your reply!

Skip

PS. I'd very interested in seeing your set of functions.


Phpster wrote:



On Apr 4, 2009, at 17:30, Skip Evans s...@bigskypenguin.com wrote:


Hey all,

At the risk of being told this is a PHP and not a JS list, but also 
knowing the discussions on this list, to the benefit of all I believe, 
very wildly, I'm posting this JS code snippet for some advice.


As I posted earlier, my AJAX app that uses a GET to post to the server 
(and get a response), fails on IE with larger data, so I thought I'd 
take a shot at writing a POST function, but so far I can get it to get 
the data back, but the problem is by the time the data has come back 
the function has already returned null back to the calling function. 
What I need this function to do is wait for the data to come back and 
then send it back to caller. Here's the function. Any advice would be 
greatly appreciated. (The code to get the appropriate object per 
browser has been omitted.)


http.open(POST, url, true);

//Send the proper header information along with the request
http.setRequestHeader(Content-type, 
application/x-www-form-urlencoded);

http.setRequestHeader(Content-length, url.length);
http.setRequestHeader(Connection, close);

http.send(url);

http.onreadystatechange = function() {//Call a function when the state 
changes.

if(http.readyState == 4  http.status == 200) {
   alert('['+http.responseText+']');
   return (http.responseText);
   }
}
--

Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com

Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Skip,

You didn't show the code to build the url variable but I would assume 
that since you started with a get method you are tacking data onto the 
end of the URL that is the called Ajax page.


I had the same issue at work correcting the VP's mistake of mixing up 
post and get in his ajax call. The trick is to build the data separately 
from the URL and pass it.


I do an ajax.open(URL) then an Ajax. Send(data) to send just the data.

I can post my entire function set if you want.

Bastien


--

Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com

Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX with POST

2009-04-04 Thread Phpster

Yep, much more

Bastien

Sent from my iPod

On Apr 4, 2009, at 21:24, Skip Evans s...@bigskypenguin.com wrote:


Hey Bastien  all,

...D'oh! Thanks for the catch, yes, I am sending args on the URL.  
But more to my problem, if I switch to POST will IE be able to  
submit more data? If so, I can parse the URL down in the function  
and build a proper post transaction, but my real problem is IE can't  
submit, apparently, more than 2K through a GET.


Do you know if POST can handle more?

Thanks tons for your reply!

Skip

PS. I'd very interested in seeing your set of functions.


Phpster wrote:

On Apr 4, 2009, at 17:30, Skip Evans s...@bigskypenguin.com wrote:

Hey all,

At the risk of being told this is a PHP and not a JS list, but  
also knowing the discussions on this list, to the benefit of all I  
believe, very wildly, I'm posting this JS code snippet for some  
advice.


As I posted earlier, my AJAX app that uses a GET to post to the  
server (and get a response), fails on IE with larger data, so I  
thought I'd take a shot at writing a POST function, but so far I  
can get it to get the data back, but the problem is by the time  
the data has come back the function has already returned null back  
to the calling function. What I need this function to do is wait  
for the data to come back and then send it back to caller. Here's  
the function. Any advice would be greatly appreciated. (The code  
to get the appropriate object per browser has been omitted.)


http.open(POST, url, true);

//Send the proper header information along with the request
http.setRequestHeader(Content-type, application/x-www-form- 
urlencoded);

http.setRequestHeader(Content-length, url.length);
http.setRequestHeader(Connection, close);

http.send(url);

http.onreadystatechange = function() {//Call a function when the  
state changes.

if(http.readyState == 4  http.status == 200) {
  alert('['+http.responseText+']');
  return (http.responseText);
  }
}
--

Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com

Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Skip,
You didn't show the code to build the url variable but I would  
assume that since you started with a get method you are tacking  
data onto the end of the URL that is the called Ajax page.
I had the same issue at work correcting the VP's mistake of mixing  
up post and get in his ajax call. The trick is to build the data  
separately from the URL and pass it.
I do an ajax.open(URL) then an Ajax. Send(data) to send just the  
data.

I can post my entire function set if you want.
Bastien


--

Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com

Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-10-06 Thread Nathan Rixham

tedd wrote:

At 12:10 PM +0200 10/4/08, Alain Roger wrote:

HI,

i'm currently working on some web application and i would like to know 
what

is the best way to do what i want.
basically like all application i have a menu and based on selected 
item menu
i want to display a page (basically 50 % of this new page is DB 
result/grid.


As usual i have 2 divs, one for the menu one for the content of DB to
display.
i would like to know if it's not better to use AJAX to load the 
content of
the second div (DB result and other stuff) instead to every time load 
a new

page which load menu and content of DB ?

what are your experiences on such thing ?
thx.

--
Alain


Alain:

The only difference the user experiences between having AJAX, or not, is 
refreshing the page. If page refresh is not a problem, then don't 
complicate your life. On the other hand, if page refresh is annoying, or 
not wanted, then AJAX is you're only solution.


But as it has been said before, not all users have javascript turned on 
and as such AJAX will not work -- after all, it javascript.


However, there are way to degrade gracefully from a AJAX site to a 
normal site. Google

javascript graceful degradation for references.

Please note, going the AJAX route does not make your coding simpler -- 
it's a different critter. But it does (with help from jQuery et al) 
offer exciting new ways to present data.


Cheers,

tedd



this is a standard response for me recently; but have you looked in to 
using flex 3 to build the clientside?


additionally ajax's main benefit (in my mind) is that it allows you to 
pull down/update only the data you need, and not the whole page - often 
this means you can skip out a large part of the templating and make the 
php server side scripts so much lighter; very beneficial when polling. 
Other than that, as everyone has mentioned - it's mainly a cosmetic thing.


--
nathan ( [EMAIL PROTECTED] )
{
  Senior Web Developer
  php + java + flex + xmpp + xml + ecmascript
  web development edinburgh | http://kraya.co.uk/
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-10-06 Thread Alain Roger

 Alain:

 The only difference the user experiences between having AJAX, or not, is
 refreshing the page. If page refresh is not a problem, then don't complicate
 your life. On the other hand, if page refresh is annoying, or not wanted,
 then AJAX is you're only solution.

 But as it has been said before, not all users have javascript turned on
 and as such AJAX will not work -- after all, it javascript.

 However, there are way to degrade gracefully from a AJAX site to a normal
 site. Google
 javascript graceful degradation for references.

 Please note, going the AJAX route does not make your coding simpler --
 it's a different critter. But it does (with help from jQuery et al) offer
 exciting new ways to present data.

 Cheers,

 tedd


 this is a standard response for me recently; but have you looked in to
 using flex 3 to build the clientside?

 additionally ajax's main benefit (in my mind) is that it allows you to pull
 down/update only the data you need, and not the whole page - often this
 means you can skip out a large part of the templating and make the php
 server side scripts so much lighter; very beneficial when polling. Other
 than that, as everyone has mentioned - it's mainly a cosmetic thing.

 --
 nathan ( [EMAIL PROTECTED] )


Without mixing themes (flex in PHP forum) flex is similar to AS3, no ?


Re: [PHP] AJAX and PHP

2008-10-06 Thread Nathan Rixham

Alain Roger wrote:

Alain:

The only difference the user experiences between having AJAX, or
not, is refreshing the page. If page refresh is not a problem,
then don't complicate your life. On the other hand, if page
refresh is annoying, or not wanted, then AJAX is you're only
solution.

But as it has been said before, not all users have javascript
turned on and as such AJAX will not work -- after all, it
javascript.

However, there are way to degrade gracefully from a AJAX site to
a normal site. Google
javascript graceful degradation for references.

Please note, going the AJAX route does not make your coding
simpler -- it's a different critter. But it does (with help from
jQuery et al) offer exciting new ways to present data.

Cheers,

tedd


this is a standard response for me recently; but have you looked in
to using flex 3 to build the clientside?

additionally ajax's main benefit (in my mind) is that it allows you
to pull down/update only the data you need, and not the whole page -
often this means you can skip out a large part of the templating and
make the php server side scripts so much lighter; very beneficial
when polling. Other than that, as everyone has mentioned - it's
mainly a cosmetic thing.

-- 
nathan ( [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] )


 
Without mixing themes (flex in PHP forum) flex is similar to AS3, no ?


yes, flex is flash for developers; the main language is AS3 and it 
outputs swf's; flex is basically a program which allows you to use mix 
of pre-made ui elements  classes, css and AS3 to quickly make great RIA's.


--
nathan ( [EMAIL PROTECTED] )
{
  Senior Web Developer
  php + java + flex + xmpp + xml + ecmascript
  web development edinburgh | http://kraya.co.uk/
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-10-06 Thread Wolf
!-- SNIP --
 yes, flex is flash for developers; the main language is AS3 and it 
 outputs swf's; flex is basically a program which allows you to use mix 
 of pre-made ui elements  classes, css and AS3 to quickly make great RIA's.

Yup, but you have to have flash enabled.  But some of us don't except for 
specific sites due to ads being swfs as well.

Wolf

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-10-06 Thread Alain Roger
And AFAIK it does not work on linux platform

On Mon, Oct 6, 2008 at 3:36 PM, Wolf [EMAIL PROTECTED] wrote:

 !-- SNIP --
  yes, flex is flash for developers; the main language is AS3 and it
  outputs swf's; flex is basically a program which allows you to use mix
  of pre-made ui elements  classes, css and AS3 to quickly make great
 RIA's.

 Yup, but you have to have flash enabled.  But some of us don't except for
 specific sites due to ads being swfs as well.

 Wolf




-- 
Alain

Windows XP SP3
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008


Re: [PHP] AJAX and PHP

2008-10-06 Thread Nathan Rixham

mailto:[EMAIL PROTECTED] wrote:

!-- SNIP --
  yes, flex is flash for developers; the main language is AS3 and it
  outputs swf's; flex is basically a program which allows you to
use mix
  of pre-made ui elements  classes, css and AS3 to quickly make
great RIA's.

Yup, but you have to have flash enabled.  But some of us don't
except for specific sites due to ads being swfs as well.

Wolf


Alain Roger wrote:
 And AFAIK it does not work on linux platform


development wise adobe flex 3 SDK works on linux; afaik flex builder 
(the wysiwyg ide for eclipse) doesn't yet.


clientside (the apps you develop) work anywhere flash player 9 does.

a great reason to get in to flex now is that flex 4 will also be 
supporting most of the major smartphones so you're app's will work 
virtually everywhere (and look nicer + dev time wayyy down).


can you tell I like it? (+it's got native E4X support)

--
nathan ( [EMAIL PROTECTED] )
{
  Senior Web Developer
  php + java + flex + xmpp + xml + ecmascript
  web development edinburgh | http://kraya.co.uk/
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-10-06 Thread Philip Thompson

On Oct 4, 2008, at 7:38 AM, Ashley Sheridan wrote:


On Sat, 2008-10-04 at 13:48 +0200, Nitsan Bin-Nun wrote:
It depends how much stuff you have in the first div, it there are a  
lot of
images and the user will have to load them again (in case there is  
no cache)
and you care for the traffic those images cost - it would be better  
to use

AJAX.

But generally - they both okay, I personally would use reload of  
the whole
page just because of the time it would take me to develop it with  
ajax ;)


HTH,
Nitsan

On Sat, Oct 4, 2008 at 12:10 PM, Alain Roger [EMAIL PROTECTED]  
wrote:



HI,

i'm currently working on some web application and i would like to  
know what

is the best way to do what i want.
basically like all application i have a menu and based on selected  
item

menu
i want to display a page (basically 50 % of this new page is DB
result/grid.

As usual i have 2 divs, one for the menu one for the content of DB  
to

display.
i would like to know if it's not better to use AJAX to load the  
content of
the second div (DB result and other stuff) instead to every time  
load a new

page which load menu and content of DB ?

what are your experiences on such thing ?
thx.

--
Alain

Windows XP SP3
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008


Also, it depends on who you think will be visiting the site, as an
increasing number of people browse the web with devices that have no
JavaScript capabilities, so they wouldn't be able to use an Ajax site.


Jump into the now. As an increasing number of people browse the web  
with (handheld?) devices, the support will also increase. However, it  
also depends on the audience you're trying to reach. IMO, I wouldn't  
limit your site for the few who a) don't have js enabled or b) have a  
device that doesn't support any standard web browser features anyway.


~Philip

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-10-06 Thread Ashley Sheridan
On Mon, 2008-10-06 at 17:09 +0200, Alain Roger wrote:
 And AFAIK it does not work on linux platform
 
 On Mon, Oct 6, 2008 at 3:36 PM, Wolf [EMAIL PROTECTED] wrote:
 
  !-- SNIP --
   yes, flex is flash for developers; the main language is AS3 and it
   outputs swf's; flex is basically a program which allows you to use mix
   of pre-made ui elements  classes, css and AS3 to quickly make great
  RIA's.
 
  Yup, but you have to have flash enabled.  But some of us don't except for
  specific sites due to ads being swfs as well.
 
  Wolf
 
 
 

It can be made to work, but there is a lot of messing about. Not tried
it myself, but I have spoken to some people on the Papervision team who
have done it.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] AJAX and PHP

2008-10-04 Thread Alain Roger
HI,

i'm currently working on some web application and i would like to know what
is the best way to do what i want.
basically like all application i have a menu and based on selected item menu
i want to display a page (basically 50 % of this new page is DB result/grid.

As usual i have 2 divs, one for the menu one for the content of DB to
display.
i would like to know if it's not better to use AJAX to load the content of
the second div (DB result and other stuff) instead to every time load a new
page which load menu and content of DB ?

what are your experiences on such thing ?
thx.

-- 
Alain

Windows XP SP3
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008


Re: [PHP] AJAX and PHP

2008-10-04 Thread Nitsan Bin-Nun
It depends how much stuff you have in the first div, it there are a lot of
images and the user will have to load them again (in case there is no cache)
and you care for the traffic those images cost - it would be better to use
AJAX.

But generally - they both okay, I personally would use reload of the whole
page just because of the time it would take me to develop it with ajax ;)

HTH,
Nitsan

On Sat, Oct 4, 2008 at 12:10 PM, Alain Roger [EMAIL PROTECTED] wrote:

 HI,

 i'm currently working on some web application and i would like to know what
 is the best way to do what i want.
 basically like all application i have a menu and based on selected item
 menu
 i want to display a page (basically 50 % of this new page is DB
 result/grid.

 As usual i have 2 divs, one for the menu one for the content of DB to
 display.
 i would like to know if it's not better to use AJAX to load the content of
 the second div (DB result and other stuff) instead to every time load a new
 page which load menu and content of DB ?

 what are your experiences on such thing ?
 thx.

 --
 Alain
 
 Windows XP SP3
 PostgreSQL 8.2.4 / MS SQL server 2005
 Apache 2.2.4
 PHP 5.2.4
 C# 2005-2008



Re: [PHP] AJAX and PHP

2008-10-04 Thread Ashley Sheridan
On Sat, 2008-10-04 at 13:48 +0200, Nitsan Bin-Nun wrote:
 It depends how much stuff you have in the first div, it there are a lot of
 images and the user will have to load them again (in case there is no cache)
 and you care for the traffic those images cost - it would be better to use
 AJAX.
 
 But generally - they both okay, I personally would use reload of the whole
 page just because of the time it would take me to develop it with ajax ;)
 
 HTH,
 Nitsan
 
 On Sat, Oct 4, 2008 at 12:10 PM, Alain Roger [EMAIL PROTECTED] wrote:
 
  HI,
 
  i'm currently working on some web application and i would like to know what
  is the best way to do what i want.
  basically like all application i have a menu and based on selected item
  menu
  i want to display a page (basically 50 % of this new page is DB
  result/grid.
 
  As usual i have 2 divs, one for the menu one for the content of DB to
  display.
  i would like to know if it's not better to use AJAX to load the content of
  the second div (DB result and other stuff) instead to every time load a new
  page which load menu and content of DB ?
 
  what are your experiences on such thing ?
  thx.
 
  --
  Alain
  
  Windows XP SP3
  PostgreSQL 8.2.4 / MS SQL server 2005
  Apache 2.2.4
  PHP 5.2.4
  C# 2005-2008
 
Also, it depends on who you think will be visiting the site, as an
increasing number of people browse the web with devices that have no
JavaScript capabilities, so they wouldn't be able to use an Ajax site.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-10-04 Thread Alain Roger
On Sat, Oct 4, 2008 at 2:38 PM, Ashley Sheridan [EMAIL PROTECTED]wrote:

 On Sat, 2008-10-04 at 13:48 +0200, Nitsan Bin-Nun wrote:
  It depends how much stuff you have in the first div, it there are a lot
 of
  images and the user will have to load them again (in case there is no
 cache)
  and you care for the traffic those images cost - it would be better to
 use
  AJAX.
 
  But generally - they both okay, I personally would use reload of the
 whole
  page just because of the time it would take me to develop it with ajax ;)
 
  HTH,
  Nitsan
 
  On Sat, Oct 4, 2008 at 12:10 PM, Alain Roger [EMAIL PROTECTED] wrote:
 
   HI,
  
   i'm currently working on some web application and i would like to know
 what
   is the best way to do what i want.
   basically like all application i have a menu and based on selected item
   menu
   i want to display a page (basically 50 % of this new page is DB
   result/grid.
  
   As usual i have 2 divs, one for the menu one for the content of DB to
   display.
   i would like to know if it's not better to use AJAX to load the content
 of
   the second div (DB result and other stuff) instead to every time load a
 new
   page which load menu and content of DB ?
  
   what are your experiences on such thing ?
   thx.
  
   --
   Alain
   
   Windows XP SP3
   PostgreSQL 8.2.4 / MS SQL server 2005
   Apache 2.2.4
   PHP 5.2.4
   C# 2005-2008
  
 Also, it depends on who you think will be visiting the site, as an
 increasing number of people browse the web with devices that have no
 JavaScript capabilities, so they wouldn't be able to use an Ajax site.


AFAIK only PDA do no have javascript support at 100%.
MacOS, MS OS and LINUX support it.


Re: [PHP] AJAX and PHP

2008-10-04 Thread Ashley Sheridan
On Sat, 2008-10-04 at 14:41 +0200, Alain Roger wrote:
 On Sat, Oct 4, 2008 at 2:38 PM, Ashley Sheridan [EMAIL PROTECTED]wrote:
 
  On Sat, 2008-10-04 at 13:48 +0200, Nitsan Bin-Nun wrote:
   It depends how much stuff you have in the first div, it there are a lot
  of
   images and the user will have to load them again (in case there is no
  cache)
   and you care for the traffic those images cost - it would be better to
  use
   AJAX.
  
   But generally - they both okay, I personally would use reload of the
  whole
   page just because of the time it would take me to develop it with ajax ;)
  
   HTH,
   Nitsan
  
   On Sat, Oct 4, 2008 at 12:10 PM, Alain Roger [EMAIL PROTECTED] wrote:
  
HI,
   
i'm currently working on some web application and i would like to know
  what
is the best way to do what i want.
basically like all application i have a menu and based on selected item
menu
i want to display a page (basically 50 % of this new page is DB
result/grid.
   
As usual i have 2 divs, one for the menu one for the content of DB to
display.
i would like to know if it's not better to use AJAX to load the content
  of
the second div (DB result and other stuff) instead to every time load a
  new
page which load menu and content of DB ?
   
what are your experiences on such thing ?
thx.
   
--
Alain

Windows XP SP3
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008
   
  Also, it depends on who you think will be visiting the site, as an
  increasing number of people browse the web with devices that have no
  JavaScript capabilities, so they wouldn't be able to use an Ajax site.
 
 
 AFAIK only PDA do no have javascript support at 100%.
 MacOS, MS OS and LINUX support it.
I meant mobile devices mainly, which tend not to support scripting.
Also, JavaScript can be turned off on a browser, and in some workplaces,
proxy servers have been known to strip out script from a page.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-10-04 Thread tedd

At 12:10 PM +0200 10/4/08, Alain Roger wrote:

HI,

i'm currently working on some web application and i would like to know what
is the best way to do what i want.
basically like all application i have a menu and based on selected item menu
i want to display a page (basically 50 % of this new page is DB result/grid.

As usual i have 2 divs, one for the menu one for the content of DB to
display.
i would like to know if it's not better to use AJAX to load the content of
the second div (DB result and other stuff) instead to every time load a new
page which load menu and content of DB ?

what are your experiences on such thing ?
thx.

--
Alain


Alain:

The only difference the user experiences between having AJAX, or not, 
is refreshing the page. If page refresh is not a problem, then don't 
complicate your life. On the other hand, if page refresh is annoying, 
or not wanted, then AJAX is you're only solution.


But as it has been said before, not all users have javascript turned 
on and as such AJAX will not work -- after all, it javascript.


However, there are way to degrade gracefully from a AJAX site to a 
normal site. Google

javascript graceful degradation for references.

Please note, going the AJAX route does not make your coding simpler 
-- it's a different critter. But it does (with help from jQuery et 
al) offer exciting new ways to present data.


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-10-04 Thread Alain Roger
Thanks tedd.
basically page refreshin is not a problem for me as it in intranet
application.
however, AJAX offers some really nice thing and 1 from my point of view it's
to reduce the network traffic by limiting what should be refresh/downloaded.
in that way i think it is interesting.


On Sat, Oct 4, 2008 at 3:52 PM, tedd [EMAIL PROTECTED] wrote:

 At 12:10 PM +0200 10/4/08, Alain Roger wrote:

 HI,

 i'm currently working on some web application and i would like to know
 what
 is the best way to do what i want.
 basically like all application i have a menu and based on selected item
 menu
 i want to display a page (basically 50 % of this new page is DB
 result/grid.

 As usual i have 2 divs, one for the menu one for the content of DB to
 display.
 i would like to know if it's not better to use AJAX to load the content of
 the second div (DB result and other stuff) instead to every time load a
 new
 page which load menu and content of DB ?

 what are your experiences on such thing ?
 thx.

 --
 Alain


 Alain:

 The only difference the user experiences between having AJAX, or not, is
 refreshing the page. If page refresh is not a problem, then don't complicate
 your life. On the other hand, if page refresh is annoying, or not wanted,
 then AJAX is you're only solution.

 But as it has been said before, not all users have javascript turned on and
 as such AJAX will not work -- after all, it javascript.

 However, there are way to degrade gracefully from a AJAX site to a normal
 site. Google
 javascript graceful degradation for references.

 Please note, going the AJAX route does not make your coding simpler -- it's
 a different critter. But it does (with help from jQuery et al) offer
 exciting new ways to present data.

 Cheers,

 tedd

 --
 ---
 http://sperling.com  http://ancientstones.com  http://earthstones.com

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Alain

Windows XP SP3
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008


Re: [PHP] AJAX and PHP

2008-10-04 Thread tedd

At 5:39 PM +0200 10/4/08, Alain Roger wrote:

Thanks tedd.
basically page refreshin is not a problem for me as it in intranet 
application.
however, AJAX offers some really nice thing and 1 from my point of 
view it's to reduce the network traffic by limiting what should be 
refresh/downloaded.


A small clarification as per my understanding -- using AJAX does not 
limit what should be downloaded -- what needs to be downloaded, needs 
to be downloaded regardless. However, using AJAX does change how the 
browser refreshes and cuts down the chatter between the server and 
client.


An AJAX request (GET or POST) is simply done behind the browser's 
back -- if something needs to be brought forward from the server to 
the client then it makes no difference if you use AJAX or the 
standard way. In either case, it requires download time and server 
contact.


If you are not using AJAX, then the browser simply refreshes the 
entire page with what it has cached and goes to the server for what 
it hasn't. With AJAX, AJAX simply tells the browser what to refresh 
and leaves the remainder alone.


As I said, using AJAX will cut down on the chatter between the server 
and client, but that chatter is not reloading everything each time. 
So, AJAX is not really affecting downloads -- those are determined by 
the needs of the page and not on the manner of the presentation.


Now, one can argue that any contact is downloading and I guess that 
is technically correct. But I am saying that communication between 
the server and client is different depending upon what's been cached. 
It's a bit like my wife calling her sister. If my wife gets the 
answering service, she leaves a message -- if not they talk. While 
one can say that a call has been made and received in either case, 
the amount transmitted is significantly different if her sister 
answers -- if you get my drift.


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-10-04 Thread Per Jessen
Alain Roger wrote:

 Thanks tedd.
 basically page refreshin is not a problem for me as it in intranet
 application.
 however, AJAX offers some really nice thing and 1 from my point of
 view it's to reduce the network traffic by limiting what should be
 refresh/downloaded. in that way i think it is interesting.

On an intranet you've almost certainly got 100Mbit/s with a suitably
capable backbone - limiting network traffic is not a concern, IMHO. 


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-10-04 Thread Alain Roger
So in this case what is the plus for companies like MS, Google (with Gmail),
flicker and so on to use AJAX ?
it is on internet, so i guess they have a purpose to do that.
mine is to have a responsive and intuitive interface application whatever it
is on internet or intranet.

On Sat, Oct 4, 2008 at 7:12 PM, Per Jessen [EMAIL PROTECTED] wrote:

 Alain Roger wrote:

  Thanks tedd.
  basically page refreshin is not a problem for me as it in intranet
  application.
  however, AJAX offers some really nice thing and 1 from my point of
  view it's to reduce the network traffic by limiting what should be
  refresh/downloaded. in that way i think it is interesting.

 On an intranet you've almost certainly got 100Mbit/s with a suitably
 capable backbone - limiting network traffic is not a concern, IMHO.


 /Per Jessen, Zürich


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Alain

Windows XP SP3
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008


Re: [PHP] AJAX and PHP

2008-10-04 Thread Robert Cummings
On Sat, 2008-10-04 at 13:38 +0100, Ashley Sheridan wrote:
 On Sat, 2008-10-04 at 13:48 +0200, Nitsan Bin-Nun wrote:
  It depends how much stuff you have in the first div, it there are a lot of
  images and the user will have to load them again (in case there is no cache)
  and you care for the traffic those images cost - it would be better to use
  AJAX.
  
  But generally - they both okay, I personally would use reload of the whole
  page just because of the time it would take me to develop it with ajax ;)
  
  HTH,
  Nitsan
  
  On Sat, Oct 4, 2008 at 12:10 PM, Alain Roger [EMAIL PROTECTED] wrote:
  
   HI,
  
   i'm currently working on some web application and i would like to know 
   what
   is the best way to do what i want.
   basically like all application i have a menu and based on selected item
   menu
   i want to display a page (basically 50 % of this new page is DB
   result/grid.
  
   As usual i have 2 divs, one for the menu one for the content of DB to
   display.
   i would like to know if it's not better to use AJAX to load the content of
   the second div (DB result and other stuff) instead to every time load a 
   new
   page which load menu and content of DB ?
  
   what are your experiences on such thing ?
   thx.
  
   --
   Alain
   
   Windows XP SP3
   PostgreSQL 8.2.4 / MS SQL server 2005
   Apache 2.2.4
   PHP 5.2.4
   C# 2005-2008
  
 Also, it depends on who you think will be visiting the site, as an
 increasing number of people browse the web with devices that have no
 JavaScript capabilities, so they wouldn't be able to use an Ajax site.

So just engineer the AJAX so it falls back to traditional full page
reload when JavaScript is disabled.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-10-04 Thread Per Jessen
Alain Roger wrote:

 So in this case what is the plus for companies like MS, Google (with
 Gmail), flicker and so on to use AJAX ?

For them (and others), it's about the user experience, and ajax is good
at enhancing the user experience. 

 it is on internet, so i guess they have a purpose to do that.
 mine is to have a responsive and intuitive interface application
 whatever it is on internet or intranet.

Now you are changing the rules - they are very different on the
internet.  My advice - don't use ajax in an attempt to reduce network
traffic.  Use it to enhance the user experience.  Caching is much
better at reducing network atraffic anyway.


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-10-04 Thread Micah Gersten


Per Jessen wrote:
 Alain Roger wrote:

   
 So in this case what is the plus for companies like MS, Google (with
 Gmail), flicker and so on to use AJAX ?
 

 For them (and others), it's about the user experience, and ajax is good
 at enhancing the user experience. 

   
 it is on internet, so i guess they have a purpose to do that.
 mine is to have a responsive and intuitive interface application
 whatever it is on internet or intranet.
 

 Now you are changing the rules - they are very different on the
 internet.  My advice - don't use ajax in an attempt to reduce network
 traffic.  Use it to enhance the user experience.  Caching is much
 better at reducing network atraffic anyway.


 /Per Jessen, Zürich

   

If it's the size of the page itself that is large, caching does not help
as the HTML is pulled everytime if something is different.
As for AJAX, check out http://xajaxproject.org

It makes AJAX really easy to code.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problem with special characters - PHP AJAX

2008-07-07 Thread bperquku

Hi all,

I'm writing a simple dictionary with php and ajax. It works perfects with
firefox but not in IE.
Here is the link

http://kllapa.com/fjahalori/test.html

I used alerts in js and find out that in the following function:

function updateMsgOnBrowser(testXML) {

var test = testXML.getElementsByTagName(test)[0];
var message=new Array(20);
var m = new Array(20);
var td = new Array(20);
var i;
for (i=1;i=10;i++){
message[i]=testXML.getElementsByTagName(message+i)[0];
message[i+1]=testXML.getElementsByTagName(message+i+r)[0];
if (message[i]!=null){m[i] = message[i].firstChild.nodeValue;}
else{m[i]=}
if (message[i+1]!=null){m[i+1] = 
message[i+1].firstChild.nodeValue;}
else{m[i+1]=}
td[i]= document.getElementById(td+i);
td[i+1]= document.getElementById(td+i+r);
td[i].innerHTML=+m[i];
td[i+1].innerHTML=+m[i+1];
}
}

the line 

message[i]=testXML.getElementsByTagName(message+i)[0];

becomes null in IE when tag message contains special character (ë, ç, Ë, Ç,
etc.). Why this works perfect in Firefox?

Any idea what could be the issue??


Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/Problem-with-special-characters---PHP---AJAX-tp18311031p18311031.html
Sent from the PHP - General mailing list archive at Nabble.com.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem with special characters - PHP AJAX

2008-07-07 Thread Michael Kubler
Are the messages being sent as UTF-8 or something else? Is the server 
sending the headers as something different to that listed in the header?
Actually, looking at it, you don't have a valid DOC-TYPE 
http://validator.w3.org/check?uri=http%3A%2F%2Fkllapa.com%2Ffjahalori%2Ftest.htmlcharset=%28detect+automatically%29doctype=Inlinegroup=0, 
nor character Encoding set.


It might be something else, but I haven't played with enough AJAX to 
debug the javascript.


Michael Kubler
*G*rey *P*hoenix *P*roductions http://www.greyphoenix.biz



bperquku wrote:

Hi all,

I'm writing a simple dictionary with php and ajax. It works perfects with
firefox but not in IE.
Here is the link

http://kllapa.com/fjahalori/test.html

I used alerts in js and find out that in the following function:

function updateMsgOnBrowser(testXML) {

var test = testXML.getElementsByTagName(test)[0];
var message=new Array(20);
var m = new Array(20);
var td = new Array(20);
var i;
for (i=1;i=10;i++){
message[i]=testXML.getElementsByTagName(message+i)[0];
message[i+1]=testXML.getElementsByTagName(message+i+r)[0];
if (message[i]!=null){m[i] = message[i].firstChild.nodeValue;}
else{m[i]=}
if (message[i+1]!=null){m[i+1] = 
message[i+1].firstChild.nodeValue;}
else{m[i+1]=}
td[i]= document.getElementById(td+i);
td[i+1]= document.getElementById(td+i+r);
td[i].innerHTML=+m[i];
td[i+1].innerHTML=+m[i+1];
}
}

the line 


message[i]=testXML.getElementsByTagName(message+i)[0];

becomes null in IE when tag message contains special character (ë, ç, Ë, Ç,
etc.). Why this works perfect in Firefox?

Any idea what could be the issue??


Thanks in advance
  


Re: [PHP] Problem with special characters - PHP AJAX

2008-07-07 Thread Jason Norwood-Young

On Mon, 2008-07-07 at 19:35 +0930, Michael Kubler wrote:
 Are the messages being sent as UTF-8 or something else? Is the server 
 sending the headers as something different to that listed in the header?
 Actually, looking at it, you don't have a valid DOC-TYPE 
 http://validator.w3.org/check?uri=http%3A%2F%2Fkllapa.com%2Ffjahalori%2Ftest.htmlcharset=%28detect+automatically%29doctype=Inlinegroup=0,
  
 nor character Encoding set.

Yeah you might want to check out HTML Entities
(http://www.php.net/manual/en/function.htmlentities.php) - great help in
encoding. Then set a doc type too.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php, ajax and international application

2008-04-22 Thread Robert Cummings

On Tue, 2008-04-22 at 07:55 +0200, Alain Roger wrote:
 Hi,
 
 Till now, i'm used to have a php file (for each language) to store all text
 labels for my international application.
 i tried with Ajax to improve it but it seems not so flexible at it promised.
 my purpose was to limit the transfer data and especially to not load too
 much the server with not important calculation as localization of
 application.
 
 therefore, i would like to know what do you do to have an international
 application ?
 1. do you use JSON : 1 javascript file for each language and for each
 module. Code is not secured and everybody can read it.

Usually you use one language JavaScript file for each language. And
the JavaScript code itself is language neutral.

 2. do you use PHP like i wrote above.

PHP would also use the language file. You could put all your language
stuff in a PHP file and have a script that can convert it to a
JavaScript loadable file. That way your maintenance occurs in one
location, but you can benefit from having the JS pre-created.

 3. you use another method
 
 I would be glad to here from you the pros and cons of your experiences.

I've not done a lot with JavaScript and multilingualism. At least not in
a way that was overly important. With respect to content, I do use
separate content files. My InterJinn framework when it builds the pages
from the templates will grab template lang/X and fall back on template X
if the language specific version doesn't exist. This is automatic when
multilingual is enabled for a project. Then it's just a case of having
language strings defined for stuff like forms and error messages. here's
a site I recently launched:

http://www.expertpanel.ca

The mapping of links to language specific content is all done at compile
time. The only run-time feature of the site is the random banner image
at the top and any forms. If *I* was to have a need for JavaScript like
you mention, I would build the language files from a PHP master file
automatically when building the site.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] AJAX and PHP

2008-04-21 Thread Alain Roger
Hi,

i'm playing around with AJAX and PHP to create something like a small
desktop application.
basically the first step is to log in the system.
for that i have a log-in form where users can choose the interface language.

here is my problem :
when the log-in form runs, it is in English. user can click on some arrow to
open another DIV and display all other languages available.
a click on a particular flag, will call the PHP page where the log-in form
(login field + password field) are stored with dynamic language interface.

however, i make no sense for the title of this form to call a PHP page where
will be just 1 dynamic text (changing on flag choice).
so if you understand well, i have 2 divs (1 for form title, 1 for log-in
form itself). and i load thanks AJAX php code into divs.

my problem is that i do not want to write a PHP page just for 1 label... it
makes sense for a complete form but not for a simple text line or label.

So how can i do that without refreshing page. using AJAX and PHP only ?
i guess you already faced such situation so i would really appreciate your
help.

thanks a lot,

-- 
Alain

Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008


Re: [PHP] AJAX and PHP

2008-04-21 Thread Thijs Lensselink

Quoting Alain Roger [EMAIL PROTECTED]:


Hi,

i'm playing around with AJAX and PHP to create something like a small
desktop application.
basically the first step is to log in the system.
for that i have a log-in form where users can choose the interface language.

here is my problem :
when the log-in form runs, it is in English. user can click on some arrow to
open another DIV and display all other languages available.
a click on a particular flag, will call the PHP page where the log-in form
(login field + password field) are stored with dynamic language interface.

however, i make no sense for the title of this form to call a PHP page where
will be just 1 dynamic text (changing on flag choice).
so if you understand well, i have 2 divs (1 for form title, 1 for log-in
form itself). and i load thanks AJAX php code into divs.

my problem is that i do not want to write a PHP page just for 1 label... it
makes sense for a complete form but not for a simple text line or label.

So how can i do that without refreshing page. using AJAX and PHP only ?
i guess you already faced such situation so i would really appreciate your
help.

thanks a lot,

--
Alain


Making an Ajax request for one little label maybe a bit overkill.
As i understand you request the whole form through an Ajax request.  
And display this to the user? And every language generates a new form?


Why not just create the form dynamically with javascript and load the  
data from PHP. So the form can stay the same for all calls. You just  
fill it with data depending on the language selected. You can fill the  
form for instance by sending a JSON encoded object from PHP to  
javascript.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] AJAX and PHP

2008-04-21 Thread Alain Roger
you understood right.

basically my problem is that the layout avoid it.
here is something like my layout :

div#0
div#1Lanague (label) : img flag img arrow to show all languages from
div#2/div#1
div#2 all flags/div#2
div#3 login field  + pwd field + submit button/div#3
/div#0

till now i only use AJAX to refresh the content of div#3
but it does not change the label from div#1 when user selects another
language from div#2.

if i place the whole form into a PHP i face several questions :
- how the ajax will reload this PHP page  (reloading itself) in the parent
control div#0 ?
- when user will click on submit button, where will be loaded the content
return of checking if log+pwd are correct ?
- how to redirect to another PHP page, when user click on submit button ?
the redirection will happen only in the content div, so only in div#0 and
not into the browser :-(

Al.

On Mon, Apr 21, 2008 at 9:55 AM, Thijs Lensselink [EMAIL PROTECTED] wrote:

 Quoting Alain Roger [EMAIL PROTECTED]:

  Hi,
 
  i'm playing around with AJAX and PHP to create something like a small
  desktop application.
  basically the first step is to log in the system.
  for that i have a log-in form where users can choose the interface
  language.
 
  here is my problem :
  when the log-in form runs, it is in English. user can click on some
  arrow to
  open another DIV and display all other languages available.
  a click on a particular flag, will call the PHP page where the log-in
  form
  (login field + password field) are stored with dynamic language
  interface.
 
  however, i make no sense for the title of this form to call a PHP page
  where
  will be just 1 dynamic text (changing on flag choice).
  so if you understand well, i have 2 divs (1 for form title, 1 for log-in
  form itself). and i load thanks AJAX php code into divs.
 
  my problem is that i do not want to write a PHP page just for 1 label...
  it
  makes sense for a complete form but not for a simple text line or label.
 
  So how can i do that without refreshing page. using AJAX and PHP only ?
  i guess you already faced such situation so i would really appreciate
  your
  help.
 
  thanks a lot,
 
  --
  Alain
 

 Making an Ajax request for one little label maybe a bit overkill.
 As i understand you request the whole form through an Ajax request. And
 display this to the user? And every language generates a new form?

 Why not just create the form dynamically with javascript and load the data
 from PHP. So the form can stay the same for all calls. You just fill it with
 data depending on the language selected. You can fill the form for instance
 by sending a JSON encoded object from PHP to javascript.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Alain

Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008


Re: [PHP] AJAX and PHP

2008-04-21 Thread Alain Roger
in fact i meant by redirecting the following thing :
- if user wrote a correct pwd and login, the system should redirect [using
header(Location  ] syntax to launch the application.
but if i use such syntax it will be redirected only into the div#0, and not
in the browser itslef.

is it clearer now ?

On Mon, Apr 21, 2008 at 11:40 AM, Thijs Lensselink [EMAIL PROTECTED] wrote:

 Quoting Alain Roger [EMAIL PROTECTED]:

  you understood right.
 
  basically my problem is that the layout avoid it.
  here is something like my layout :
 
  div#0
  div#1Lanague (label) : img flag img arrow to show all languages
  from
  div#2/div#1
  div#2 all flags/div#2
  div#3 login field  + pwd field + submit button/div#3
  /div#0
 
  till now i only use AJAX to refresh the content of div#3
  but it does not change the label from div#1 when user selects another
  language from div#2.
 
 
 Well it looks like you need a extra Ajax call to the server.

 Click a language flag sends a request to the server. The server responds
 with an JSON object. Containing the content for div#2. With javascript you
 can update the contents of div#2

  if i place the whole form into a PHP i face several questions :
  - how the ajax will reload this PHP page  (reloading itself) in the
  parent
  control div#0 ?
 

 If you would like to reload the whole of div#0 You could send and JSON
 object from PHP to javascript. And let javascript generate the div structure
 and update the DOM.

  - when user will click on submit button, where will be loaded the content
  return of checking if log+pwd are correct ?
 

 When a user logs in a Ajax request is send to the server. the server
 responds with an JSON object containing the error message. With javascript
 you could update the contents of div#3 to display a message.

  - how to redirect to another PHP page, when user click on submit button ?
  the redirection will happen only in the content div, so only in div#0
  and
  not into the browser :-(
 

 I have a hard time understanding this last issue. What exactly do you mean
 by redirecting to another PHP page?



  Al.
 
  On Mon, Apr 21, 2008 at 9:55 AM, Thijs Lensselink [EMAIL PROTECTED] wrote:
 
   Quoting Alain Roger [EMAIL PROTECTED]:
  
Hi,
   
i'm playing around with AJAX and PHP to create something like a
   small
desktop application.
basically the first step is to log in the system.
for that i have a log-in form where users can choose the interface
language.
   
here is my problem :
when the log-in form runs, it is in English. user can click on some
arrow to
open another DIV and display all other languages available.
a click on a particular flag, will call the PHP page where the
   log-in
form
(login field + password field) are stored with dynamic language
interface.
   
however, i make no sense for the title of this form to call a PHP
   page
where
will be just 1 dynamic text (changing on flag choice).
so if you understand well, i have 2 divs (1 for form title, 1 for
   log-in
form itself). and i load thanks AJAX php code into divs.
   
my problem is that i do not want to write a PHP page just for 1
   label...
it
makes sense for a complete form but not for a simple text line or
   label.
   
So how can i do that without refreshing page. using AJAX and PHP
   only ?
i guess you already faced such situation so i would really
   appreciate
your
help.
   
thanks a lot,
   
--
Alain
   
  
   Making an Ajax request for one little label maybe a bit overkill.
   As i understand you request the whole form through an Ajax request.
   And
   display this to the user? And every language generates a new form?
  
   Why not just create the form dynamically with javascript and load the
   data
   from PHP. So the form can stay the same for all calls. You just fill
   it with
   data depending on the language selected. You can fill the form for
   instance
   by sending a JSON encoded object from PHP to javascript.
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
  
  
 
  --
  Alain
  
  Windows XP SP2
  PostgreSQL 8.2.4 / MS SQL server 2005
  Apache 2.2.4
  PHP 5.2.4
  C# 2005-2008
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Alain

Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008


Re: [PHP] AJAX and PHP

2008-04-21 Thread Thijs Lensselink

Quoting Alain Roger [EMAIL PROTECTED]:


in fact i meant by redirecting the following thing :
- if user wrote a correct pwd and login, the system should redirect [using
header(Location  ] syntax to launch the application.
but if i use such syntax it will be redirected only into the div#0, and not
in the browser itslef.

is it clearer now ?


It's crystal clear :)

I guess you could do it in two ways. Firstly without a redirect. You  
could just use javascript and CSS to show some sort of error message.  
Reload the form in the div. And give the user another try to login.


If you really want a reload. You have to do it with javascript. You  
could let PHP send back a status to javascript. And based on that.  
Either load a div with content. Or do a document.location = ''; Hope  
it helps.




On Mon, Apr 21, 2008 at 11:40 AM, Thijs Lensselink [EMAIL PROTECTED] wrote:


Quoting Alain Roger [EMAIL PROTECTED]:

 you understood right.

 basically my problem is that the layout avoid it.
 here is something like my layout :

 div#0
 div#1Lanague (label) : img flag img arrow to show all languages
 from
 div#2/div#1
 div#2 all flags/div#2
 div#3 login field  + pwd field + submit button/div#3
 /div#0

 till now i only use AJAX to refresh the content of div#3
 but it does not change the label from div#1 when user selects another
 language from div#2.


Well it looks like you need a extra Ajax call to the server.

Click a language flag sends a request to the server. The server responds
with an JSON object. Containing the content for div#2. With javascript you
can update the contents of div#2

 if i place the whole form into a PHP i face several questions :
 - how the ajax will reload this PHP page  (reloading itself) in the
 parent
 control div#0 ?


If you would like to reload the whole of div#0 You could send and JSON
object from PHP to javascript. And let javascript generate the div structure
and update the DOM.

 - when user will click on submit button, where will be loaded the content
 return of checking if log+pwd are correct ?


When a user logs in a Ajax request is send to the server. the server
responds with an JSON object containing the error message. With javascript
you could update the contents of div#3 to display a message.

 - how to redirect to another PHP page, when user click on submit button ?
 the redirection will happen only in the content div, so only in div#0
 and
 not into the browser :-(


I have a hard time understanding this last issue. What exactly do you mean
by redirecting to another PHP page?



 Al.

 On Mon, Apr 21, 2008 at 9:55 AM, Thijs Lensselink [EMAIL PROTECTED] wrote:

  Quoting Alain Roger [EMAIL PROTECTED]:
 
   Hi,
  
   i'm playing around with AJAX and PHP to create something like a
  small
   desktop application.
   basically the first step is to log in the system.
   for that i have a log-in form where users can choose the interface
   language.
  
   here is my problem :
   when the log-in form runs, it is in English. user can click on some
   arrow to
   open another DIV and display all other languages available.
   a click on a particular flag, will call the PHP page where the
  log-in
   form
   (login field + password field) are stored with dynamic language
   interface.
  
   however, i make no sense for the title of this form to call a PHP
  page
   where
   will be just 1 dynamic text (changing on flag choice).
   so if you understand well, i have 2 divs (1 for form title, 1 for
  log-in
   form itself). and i load thanks AJAX php code into divs.
  
   my problem is that i do not want to write a PHP page just for 1
  label...
   it
   makes sense for a complete form but not for a simple text line or
  label.
  
   So how can i do that without refreshing page. using AJAX and PHP
  only ?
   i guess you already faced such situation so i would really
  appreciate
   your
   help.
  
   thanks a lot,
  
   --
   Alain
  
 
  Making an Ajax request for one little label maybe a bit overkill.
  As i understand you request the whole form through an Ajax request.
  And
  display this to the user? And every language generates a new form?
 
  Why not just create the form dynamically with javascript and load the
  data
  from PHP. So the form can stay the same for all calls. You just fill
  it with
  data depending on the language selected. You can fill the form for
  instance
  by sending a JSON encoded object from PHP to javascript.
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 

 --
 Alain
 
 Windows XP SP2
 PostgreSQL 8.2.4 / MS SQL server 2005
 Apache 2.2.4
 PHP 5.2.4
 C# 2005-2008




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
Alain

Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008





--
PHP General Mailing List 

Re: [PHP] AJAX and PHP

2008-04-21 Thread Nitsan Bin-Nun
Hi Alain,
You can create a mini-db with XML, that contains translations for each of
the words you need (if there are 10 words, 50 langs, you got 500 records..
small and useful).

HTH,
Nitsan

On 21/04/2008, Alain Roger [EMAIL PROTECTED] wrote:

 Hi,

 i'm playing around with AJAX and PHP to create something like a small
 desktop application.
 basically the first step is to log in the system.
 for that i have a log-in form where users can choose the interface
 language.

 here is my problem :
 when the log-in form runs, it is in English. user can click on some arrow
 to
 open another DIV and display all other languages available.
 a click on a particular flag, will call the PHP page where the log-in form
 (login field + password field) are stored with dynamic language interface.

 however, i make no sense for the title of this form to call a PHP page
 where
 will be just 1 dynamic text (changing on flag choice).
 so if you understand well, i have 2 divs (1 for form title, 1 for log-in
 form itself). and i load thanks AJAX php code into divs.

 my problem is that i do not want to write a PHP page just for 1 label...
 it
 makes sense for a complete form but not for a simple text line or label.

 So how can i do that without refreshing page. using AJAX and PHP only ?
 i guess you already faced such situation so i would really appreciate your
 help.

 thanks a lot,

 --
 Alain
 
 Windows XP SP2
 PostgreSQL 8.2.4 / MS SQL server 2005
 Apache 2.2.4
 PHP 5.2.4
 C# 2005-2008



Re: [PHP] AJAX and PHP

2008-04-21 Thread Thijs Lensselink

Quoting Alain Roger [EMAIL PROTECTED]:


you understood right.

basically my problem is that the layout avoid it.
here is something like my layout :

div#0
div#1Lanague (label) : img flag img arrow to show all languages from
div#2/div#1
div#2 all flags/div#2
div#3 login field  + pwd field + submit button/div#3
/div#0

till now i only use AJAX to refresh the content of div#3
but it does not change the label from div#1 when user selects another
language from div#2.



Well it looks like you need a extra Ajax call to the server.

Click a language flag sends a request to the server. The server  
responds with an JSON object. Containing the content for div#2. With  
javascript you can update the contents of div#2



if i place the whole form into a PHP i face several questions :
- how the ajax will reload this PHP page  (reloading itself) in the parent
control div#0 ?


If you would like to reload the whole of div#0 You could send and  
JSON object from PHP to javascript. And let javascript generate the  
div structure and update the DOM.



- when user will click on submit button, where will be loaded the content
return of checking if log+pwd are correct ?


When a user logs in a Ajax request is send to the server. the server  
responds with an JSON object containing the error message. With  
javascript you could update the contents of div#3 to display a  
message.



- how to redirect to another PHP page, when user click on submit button ?
the redirection will happen only in the content div, so only in div#0 and
not into the browser :-(


I have a hard time understanding this last issue. What exactly do you  
mean by redirecting to another PHP page?




Al.

On Mon, Apr 21, 2008 at 9:55 AM, Thijs Lensselink [EMAIL PROTECTED] wrote:


Quoting Alain Roger [EMAIL PROTECTED]:

 Hi,

 i'm playing around with AJAX and PHP to create something like a small
 desktop application.
 basically the first step is to log in the system.
 for that i have a log-in form where users can choose the interface
 language.

 here is my problem :
 when the log-in form runs, it is in English. user can click on some
 arrow to
 open another DIV and display all other languages available.
 a click on a particular flag, will call the PHP page where the log-in
 form
 (login field + password field) are stored with dynamic language
 interface.

 however, i make no sense for the title of this form to call a PHP page
 where
 will be just 1 dynamic text (changing on flag choice).
 so if you understand well, i have 2 divs (1 for form title, 1 for log-in
 form itself). and i load thanks AJAX php code into divs.

 my problem is that i do not want to write a PHP page just for 1 label...
 it
 makes sense for a complete form but not for a simple text line or label.

 So how can i do that without refreshing page. using AJAX and PHP only ?
 i guess you already faced such situation so i would really appreciate
 your
 help.

 thanks a lot,

 --
 Alain


Making an Ajax request for one little label maybe a bit overkill.
As i understand you request the whole form through an Ajax request. And
display this to the user? And every language generates a new form?

Why not just create the form dynamically with javascript and load the data
from PHP. So the form can stay the same for all calls. You just fill it with
data depending on the language selected. You can fill the form for instance
by sending a JSON encoded object from PHP to javascript.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
Alain

Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php, ajax and international application

2008-04-21 Thread Alain Roger
Hi,

Till now, i'm used to have a php file (for each language) to store all text
labels for my international application.
i tried with Ajax to improve it but it seems not so flexible at it promised.
my purpose was to limit the transfer data and especially to not load too
much the server with not important calculation as localization of
application.

therefore, i would like to know what do you do to have an international
application ?
1. do you use JSON : 1 javascript file for each language and for each
module. Code is not secured and everybody can read it.
2. do you use PHP like i wrote above.
3. you use another method

I would be glad to here from you the pros and cons of your experiences.

thx.

-- 
Alain

Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008


Re: [PHP] PHP Ajax progress bar

2008-03-13 Thread tedd

At 11:24 AM +0800 3/12/08, Shelley wrote:

Hi all,

I'm searching some file upload progress bar code.
But no good result was found. :(
So is there anybody please be kind enough to show some code here?

Great thanks.

--
Regard,
Shelley (http://phparch.cn)


Shelley:

Here's my solution:

http://webbytedd.com/bb/wait/

However, if you want php to communicate with ajax, then that can be 
done like so:


http://webbytedd.com/b/timed-php/

But, you will need to figure out how much of a file has been uploaded 
at each interval and I don't know how to do that.


However, if it's a batch of files, then that certainly could be done 
between each file.


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Ajax progress bar

2008-03-12 Thread Thijs Lensselink

Quoting Shelley [EMAIL PROTECTED]:


Hi all,

I'm searching some file upload progress bar code.
But no good result was found. :(
So is there anybody please be kind enough to show some code here?

Great thanks.

--
Regard,
Shelley (http://phparch.cn)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


You can try searching the archives. Rasmus had an example a long time ago.
Although it requires APC to be installed. Maybe it's interesting.

Found it:
Example : http://progphp.com/upload.php
Source : http://progphp.com/upload.phps

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Ajax progress bar

2008-03-12 Thread Mr Webber
I haven't' tried this yet ... so I would appreciate your feedback.

-Original Message-
From: Thijs Lensselink [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2008 4:28 AM
To: php-general@lists.php.net
Subject: Re: [PHP] PHP  Ajax progress bar

Quoting Shelley [EMAIL PROTECTED]:

 Hi all,

 I'm searching some file upload progress bar code.
 But no good result was found. :(
 So is there anybody please be kind enough to show some code here?

 Great thanks.

 --
 Regard,
 Shelley (http://phparch.cn)

 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

You can try searching the archives. Rasmus had an example a long time ago.
Although it requires APC to be installed. Maybe it's interesting.

Found it:
Example : http://progphp.com/upload.php
Source : http://progphp.com/upload.phps

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Ajax progress bar

2008-03-12 Thread Thijs Lensselink

Quoting Mr Webber [EMAIL PROTECTED]:


I haven't' tried this yet ... so I would appreciate your feedback.

-Original Message-
From: Thijs Lensselink [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2008 4:28 AM
To: php-general@lists.php.net
Subject: Re: [PHP] PHP  Ajax progress bar

Quoting Shelley [EMAIL PROTECTED]:


Hi all,

I'm searching some file upload progress bar code.
But no good result was found. :(
So is there anybody please be kind enough to show some code here?

Great thanks.

--
Regard,
Shelley (http://phparch.cn)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


You can try searching the archives. Rasmus had an example a long time ago.
Although it requires APC to be installed. Maybe it's interesting.

Found it:
Example : http://progphp.com/upload.php
Source : http://progphp.com/upload.phps

--


Pls don't top post.

If you want to know if it works. Go ahead!
Copy paste the code and give it a try.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Ajax progress bar

2008-03-12 Thread Shelley

Thijs Lensselink 写道:

Quoting Mr Webber [EMAIL PROTECTED]:


I haven't' tried this yet ... so I would appreciate your feedback.

-Original Message-
From: Thijs Lensselink [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2008 4:28 AM
To: php-general@lists.php.net
Subject: Re: [PHP] PHP  Ajax progress bar

Quoting Shelley [EMAIL PROTECTED]:


Hi all,

I'm searching some file upload progress bar code.
But no good result was found. :(
So is there anybody please be kind enough to show some code here?

Great thanks.

--
Regard,
Shelley (http://phparch.cn)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


You can try searching the archives. Rasmus had an example a long time 
ago.

Although it requires APC to be installed. Maybe it's interesting.

Found it:
Example : http://progphp.com/upload.php
Source : http://progphp.com/upload.phps

--


Pls don't top post.

If you want to know if it works. Go ahead!
Copy paste the code and give it a try.



I don't think it works.

I tried.
The screen always said 0%, 0 of 0 byte until the file is uploaded.
Is that what you mean progress bar?

--
Regards,
Shelley (http://phparch.cn)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Ajax progress bar

2008-03-12 Thread Thijs Lensselink

Quoting Shelley [EMAIL PROTECTED]:


Thijs Lensselink 写道:

Quoting Mr Webber [EMAIL PROTECTED]:


I haven't' tried this yet ... so I would appreciate your feedback.

-Original Message-
From: Thijs Lensselink [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2008 4:28 AM
To: php-general@lists.php.net
Subject: Re: [PHP] PHP  Ajax progress bar

Quoting Shelley [EMAIL PROTECTED]:


Hi all,

I'm searching some file upload progress bar code.
But no good result was found. :(
So is there anybody please be kind enough to show some code here?

Great thanks.

--
Regard,
Shelley (http://phparch.cn)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


You can try searching the archives. Rasmus had an example a long time ago.
Although it requires APC to be installed. Maybe it's interesting.

Found it:
Example : http://progphp.com/upload.php
Source : http://progphp.com/upload.phps

--


Pls don't top post.

If you want to know if it works. Go ahead!
Copy paste the code and give it a try.



I don't think it works.

I tried.
The screen always said 0%, 0 of 0 byte until the file is uploaded.
Is that what you mean progress bar?

--
Regards,
Shelley (http://phparch.cn)



Do you have all the yui files? and APC enabled?
I tried it some time ago and it worked. But i did  have to set

apc.rfc1867 = on

in php.ini to make it work. Forgot to mention that one.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Ajax progress bar

2008-03-12 Thread Philip Thompson

On Mar 12, 2008, at 5:02 AM, Thijs Lensselink wrote:


Thijs Lensselink 写道:


How do you pronounce your name?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Ajax progress bar

2008-03-12 Thread Thijs Lensselink

Quoting Philip Thompson [EMAIL PROTECTED]:


On Mar 12, 2008, at 5:02 AM, Thijs Lensselink wrote:


Thijs Lensselink 写道:


How do you pronounce your name?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Well.. how to explain this one...

thijs : T + [ice]

That's the best i can do :)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Ajax progress bar

2008-03-12 Thread Philip Thompson

On Mar 12, 2008, at 9:52 AM, Thijs Lensselink wrote:


Quoting Philip Thompson [EMAIL PROTECTED]:


On Mar 12, 2008, at 5:02 AM, Thijs Lensselink wrote:


Thijs Lensselink 写道:


How do you pronounce your name?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Well.. how to explain this one...

thijs : T + [ice]

That's the best i can do :)



Which is different than the famous rapper/actor...

hijs-t : [ice] + T

Hehehe =D
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Ajax progress bar

2008-03-12 Thread Daniel Brown
On Wed, Mar 12, 2008 at 11:03 AM, Philip Thompson
[EMAIL PROTECTED] wrote:
 On Mar 12, 2008, at 9:52 AM, Thijs Lensselink wrote:
   Quoting Philip Thompson [EMAIL PROTECTED]:
  
   How do you pronounce your name?
  
   Well.. how to explain this one...
  
   thijs : T + [ice]
  

  Which is different than the famous rapper/actor...

  hijs-t : [ice] + T


HA!

-- 
/Dan

Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Ajax progress bar

2008-03-12 Thread Thijs Lensselink

Quoting Daniel Brown [EMAIL PROTECTED]:


On Wed, Mar 12, 2008 at 11:03 AM, Philip Thompson
[EMAIL PROTECTED] wrote:

On Mar 12, 2008, at 9:52 AM, Thijs Lensselink wrote:
  Quoting Philip Thompson [EMAIL PROTECTED]:
 
  How do you pronounce your name?
 
  Well.. how to explain this one...
 
  thijs : T + [ice]
 

 Which is different than the famous rapper/actor...

 hijs-t : [ice] + T



HA!

--
/Dan

Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?



Same reaction here!



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Ajax progress bar

2008-03-12 Thread Sn!per
Quoting Shelley [EMAIL PROTECTED]:

 I don't think it works.
 
 I tried.
 The screen always said 0%, 0 of 0 byte until the file is uploaded.
 Is that what you mean progress bar?
 
 --
 Regards,
 Shelley (http://phparch.cn)

It work fine. And that's what we meant by progress bar.

--
Roger


---
Sign Up for free Email at http://ureg.home.net.my/
---

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP Ajax progress bar

2008-03-12 Thread Manuel Lemos
Hello,

on 03/12/2008 12:24 AM Shelley said the following:
 Hi all,
 
 I'm searching some file upload progress bar code.
 But no good result was found. :(
 So is there anybody please be kind enough to show some code here?

You may want to take a look at this forms generation and validation
class that comes with a plug-in to do precisely that. Check the
test_upload_progress.php example script.

http://www.phpclasses.org/formsgeneration


Here is a live example page so you can see it in action:

http://www.meta-language.net/forms-examples.html?example=test_upload_progress


You can also watch this tutorial video to learn more about this plug-in:

http://www.phpclasses.org/browse/video/1/package/1/section/plugin-upload-meter.html


You may also want to read this blog article about the subject:

http://www.phpclasses.org/blog/post/61-File-upload-progress-meter-for-PHP-4-at-last.html

-- 

Regards,
Manuel Lemos

PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP Ajax progress bar

2008-03-11 Thread Shelley

Hi all,

I'm searching some file upload progress bar code.
But no good result was found. :(
So is there anybody please be kind enough to show some code here?

Great thanks.

--
Regard,
Shelley (http://phparch.cn)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Ajax progress bar

2008-03-11 Thread Wolf

Shelley,

What code have you tried and what were your results?

What about searches on google or the archives here?

Wolf


Shelley wrote:

Hi all,

I'm searching some file upload progress bar code.
But no good result was found. :(
So is there anybody please be kind enough to show some code here?

Great thanks.

--
Regard,
Shelley (http://phparch.cn)




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Ajax progress bar

2008-03-11 Thread Wolf
As a qualified PHP Engineer , I'm certain you have written some code 
that is failing and you need a little help massaging, by all means post 
it and we'll gladly take a look and see if we can help facilitate its use.


Wolf

Shelley wrote:

Hi all,

I'm searching some file upload progress bar code.
But no good result was found. :(
So is there anybody please be kind enough to show some code here?

Great thanks.

--
Regard,
Shelley (http://phparch.cn)




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP: Ajax send()

2008-02-22 Thread germana
Hi!!

Im trying to sent data to and php with Ajax, so..
this is what im sending_url= table='historia'$'='$''$'string'$'';

then i do:

_url = _url.substring(0,_url.length-1)  //quita el  de sobra al final
var ajax = nuevoAjax();
ajax.open(POST, atrapalo_x.php, true);
ajax.setRequestHeader(Content-Type,
aplication/x-www-form-urlencoded);
ajax.send(_url);

ajax.onreadystatechange = function()
{
if(ajax.readyState == 4)
{
alert(ajax.responseText)
.
.
.
..

and in the php i do:

$datafield=explode($,str_replace(\',',$_POST[table]));
$main_table=.str_replace(',,$datafield[0]).;
$main_table=strtolower($main_table);

but when i do and echo $datafield[0] or echo $main_table

it returns  nothing... just blank




Re: [PHP] PHP: Ajax send()

2008-02-22 Thread Zoltán Németh
2008. 02. 22, péntek keltezéssel 12.03-kor germana ezt írta:
 Hi!!
 
 Im trying to sent data to and php with Ajax, so..
 this is what im sending_url= table='historia'$'='$''$'string'$'';
 
 then i do:
 
 _url = _url.substring(0,_url.length-1)  //quita el  de sobra al final
 var ajax = nuevoAjax();
   ajax.open(POST, atrapalo_x.php, true);
   ajax.setRequestHeader(Content-Type,
 aplication/x-www-form-urlencoded);
   ajax.send(_url);
   
   ajax.onreadystatechange = function()
   {
   if(ajax.readyState == 4)
   {
   alert(ajax.responseText)
 .
 .
 .
 ..
 
 and in the php i do:
 
 $datafield=explode($,str_replace(\',',$_POST[table]));
 $main_table=.str_replace(',,$datafield[0]).;
 $main_table=strtolower($main_table);
 
 but when i do and echo $datafield[0] or echo $main_table
 
 it returns  nothing... just blank
 

and if you var_dump($_POST) what does it show?

greets
Zoltán Németh

 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP: Ajax send()

2008-02-22 Thread Zoltán Németh
please reply to the list also...

2008. 02. 22, péntek keltezéssel 15.25-kor germana ezt írta:
 nuevoAjax() is the name of the ajax object :P  in spanish

OK, but that does not tell me anything about what kind of ajax library
you're using... anyway, maybe it's better to ask on an ajax list because
this is clearly not a php problem

greets
Zoltán Németh

 
 On Fri, 2008-02-22 at 20:54 +0100, Zoltán Németh wrote: 
  2008. 02. 22, péntek keltezéssel 14.32-kor germana ezt írta:
   So... i was checking my localhost with wireshark (a sniffer) and i
   found that the DATA is send after the POST ¿¿¿ i dont understand
   why the data is not send completly.
  
  the problem must be in your ajax library... I don't know what kind of
  ajax scripts you use, I've never seen 'nuevoAjax' before, but its
  clearly a problem with your javascript, not php. correctly sent requests
  contain the post data, so $_POST is not empty if you send anything
  
  greets
  Zoltán Németh
  
   
   
   
   if i do var_dump($_POST) is: array(0){}
   
   On Fri, 2008-02-22 at 17:41 +0100, Zoltán Németh wrote: 
2008. 02. 22, péntek keltezéssel 12.03-kor germana ezt írta:
 Hi!!
 
 Im trying to sent data to and php with Ajax, so..
 this is what im sending_url= table='historia'$'='$''$'string'$'';
 
 then i do:
 
 _url = _url.substring(0,_url.length-1)  //quita el  de sobra al final
 var ajax = nuevoAjax();
   ajax.open(POST, atrapalo_x.php, true);
   ajax.setRequestHeader(Content-Type,
 aplication/x-www-form-urlencoded);
   ajax.send(_url);
   
   ajax.onreadystatechange = function()
   {
   if(ajax.readyState == 4)
   {
   alert(ajax.responseText)
 .
 .
 .
 ..
 
 and in the php i do:
 
 $datafield=explode($,str_replace(\',',$_POST[table]));
 $main_table=.str_replace(',,$datafield[0]).;
 $main_table=strtolower($main_table);
 
 but when i do and echo $datafield[0] or echo $main_table
 
 it returns  nothing... just blank
 

and if you var_dump($_POST) what does it show?

greets
Zoltán Németh

 

  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP: Ajax send()

2008-02-22 Thread Zoltán Németh
2008. 02. 22, péntek keltezéssel 14.32-kor germana ezt írta:
 So... i was checking my localhost with wireshark (a sniffer) and i
 found that the DATA is send after the POST ¿¿¿ i dont understand
 why the data is not send completly.

the problem must be in your ajax library... I don't know what kind of
ajax scripts you use, I've never seen 'nuevoAjax' before, but its
clearly a problem with your javascript, not php. correctly sent requests
contain the post data, so $_POST is not empty if you send anything

greets
Zoltán Németh

 
 
 
 if i do var_dump($_POST) is: array(0){}
 
 On Fri, 2008-02-22 at 17:41 +0100, Zoltán Németh wrote: 
  2008. 02. 22, péntek keltezéssel 12.03-kor germana ezt írta:
   Hi!!
   
   Im trying to sent data to and php with Ajax, so..
   this is what im sending_url= table='historia'$'='$''$'string'$'';
   
   then i do:
   
   _url = _url.substring(0,_url.length-1)  //quita el  de sobra al final
   var ajax = nuevoAjax();
 ajax.open(POST, atrapalo_x.php, true);
 ajax.setRequestHeader(Content-Type,
   aplication/x-www-form-urlencoded);
 ajax.send(_url);
 
 ajax.onreadystatechange = function()
 {
 if(ajax.readyState == 4)
 {
 alert(ajax.responseText)
   .
   .
   .
   ..
   
   and in the php i do:
   
   $datafield=explode($,str_replace(\',',$_POST[table]));
   $main_table=.str_replace(',,$datafield[0]).;
   $main_table=strtolower($main_table);
   
   but when i do and echo $datafield[0] or echo $main_table
   
   it returns  nothing... just blank
   
  
  and if you var_dump($_POST) what does it show?
  
  greets
  Zoltán Németh
  
   
  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Ajax, an HTML form being saved in mySQL

2008-02-10 Thread Ron Piggott

I am trying to bring my programming skills together ... but I have hit a
road block.

I am writing my own ledger (accounting) software.

I am needing help to pass 2 variables generated by Ajax through my form
to be saved in a mySQL table.

A sample of what ledger_select_account.js outputs is as follows --- the
PHP script it accesses queries a table and then echo's this to the
screen.

SELECT name=account_reference
OPTION value =1PayPal (REF: 1)/OPTION
OPTION value =3Receiver General (REF: 3)/OPTION
OPTION value =2TD Canada Trust (REF: 2)/OPTION
/SELECT

The source code for ledger_select_account.js is:

var xmlHttp

function showCustomer(str)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert (Your browser does not support AJAX!);
  return;
  } 
var url=ledger_account_details.php;
url=url+?account_source=+str;
url=url+sid=+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open(GET,url,true);
xmlHttp.send(null);
}

function stateChanged () {
if (xmlHttp.readyState == 4) {
document.getElementById(txtHint).innerHTML=xmlHttp.responseText;
} else {
//alert(xmlHttp.readyState)
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
{
xmlHttp=new ActiveXObject(Msxml2.XMLHTTP);
}
  catch (e)
{
xmlHttp=new ActiveXObject(Microsoft.XMLHTTP);
}
  }
return xmlHttp;
} 


A sample of what ledger_select_gifi.js outputs is as follows --- the PHP
script it accesses queries a table and then echo's this to the screen.

SELECT NAME=gifi_reference
OPTION VALUE=9Bank Charges (8715: Bank Charges)/OPTION
OPTION VALUE=10Benevolent Fund (9270: Other Expenses)/OPTION
OPTION VALUE=13Computer Equipment  / Software (1774: Computer
Equipment / Software)/OPTION
OPTION VALUE=4Office Expenses (8811: Office stationery and
supplies)/OPTION
OPTION VALUE=12Our Advertising Campaign Expenses (8521:
Advertising)/OPTION
OPTION VALUE=8Photocopying (8810: Photocopying)/OPTION
OPTION VALUE=7Postage (9275: Delivery, Freight and Express)/OPTION
OPTION VALUE=5Telephone Expenses (9225: Telephone and
Communications)/OPTION
OPTION VALUE=6Web Site Hosting (9152: Internet)/OPTION
/SELECT

The source code for ledger_select_gifi.js is:

var xmlHttp2

function showGIFI(str)
{ 
xmlHttp2=GetXmlHttpObject();
if (xmlHttp2==null)
  {
  alert (Your browser does not support AJAX!);
  return;
  } 
var url=ledger_gifi_details.php;
url=url+?transaction_type=+str;
url=url+sid=+Math.random();
xmlHttp2.onreadystatechange=stateChanged2;
xmlHttp2.open(GET,url,true);
xmlHttp2.send(null);
}

function stateChanged2 () {
if (xmlHttp2.readyState == 4) {
document.getElementById(txtGIFI).innerHTML=xmlHttp2.responseText;
} else {
//alert(xmlHttp.readyState)
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
{
xmlHttp=new ActiveXObject(Msxml2.XMLHTTP);
}
  catch (e)
{
xmlHttp=new ActiveXObject(Microsoft.XMLHTTP);
}
  }
return xmlHttp;
} 



The form which submits the ledger entry is this:



head
script src=ledger_select_account.js/script
script src=ledger_select_gifi.js/script
/head

center
table
trtd width=800
font face=times new roman
centeruNew Ledger Entry/u/centerp


center
table

form method=POST action=index.php?request=receive_ledger_entry_record

trtd align=rightfont face=times new romanName Record Source:/td
td
SELECT NAME=account_source onchange=showCustomer(this.value)
OPTION VALUE=0MAKE YOUR SELECTION/OPTION
OPTION VALUE=1Member Services Account/OPTION
OPTION VALUE=2Ledger Account/OPTION
OPTION VALUE=3Supplier/OPTION
OPTION VALUE=4Advertiser Account/OPTION
/SELECT
/td/tr

trtd align=rightfont face=times new romanAccount Reference:/td
td
div id=txtHintbAccount holder information will be listed here./b/div
/td/tr


trtd align=rightfont face=times new romanTransaction Type:/td
td
SELECT NAME=transaction_type onchange=showGIFI(this.value)
OPTION VALUE=0MAKE YOUR SELECTION/OPTION
OPTION VALUE=1Donation/OPTION
OPTION VALUE=2Expense/OPTION
OPTION VALUE=3Income/OPTION
OPTION VALUE=4PayPal Funds Transfer/OPTION
OPTION VALUE=5Payroll/OPTION
/SELECT
/td/tr

trtd align=rightfont face=times new romanGIFI Reference:/td
td
div id=txtGIFIbGIFI information will be listed here./b/div
/td/tr

trtd align=rightfont face=times new romanTransaction Date 
(-MM-DD):/td
td
input type=text name=transaction_date size=40 maxlength=10
/td/tr

trtd/tdtd

table

trtd align=rightfont face=times new romanForeign Currency 
Received:/td
td
font face=times new roman$ input type=text 
name=foreign_currency_dollar_value size=20 maxlength=12
/td/tr

trtd align=rightfont face=times new romanForeign Currency 
Identifier:/td
td
SELECT NAME=foreign_currency_identifier
OPTION VALUE=0/OPTION
OPTION VALUE=1U.S. Funds/OPTION
/SELECT
/td/tr

trtd 

Re: [PHP] Re: PHP/AJAX File DragDrop

2007-12-01 Thread Jim Lucas

Dan wrote:
Unfortunatly javascript can't access the filesystem so it can't get 
filenames.  The closest way you could do something like this would be to 
use Java (not javascript, totally different).  It's a permissions thing, 
just the way JS and everything else is designed.


- Dan

Andrei Verovski (aka MacGuru) [EMAIL PROTECTED] wrote in 
message news:[EMAIL PROTECTED]

Hi !

Anyone knows PHP/AJAX library which allows to get full path of file 
dropped

into web browser's window area?

It is required for document archiving system in order to avoid 
multiple (or to

be more precise, almost endless) usage of open file dialogs from the
browser.

Library should be compatible with Firefox (Lin, Win, Mac), IE and Safary.


Thanks in advance for any suggestion(s).

Andrei 




In fact you can access the filesystem with signed javascript scripts. 
 Which by signing you Javascript, you will be allowed to access the 
local file system.


But, again, it is all about the permissions.

Jim

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PHP/AJAX File DragDrop

2007-12-01 Thread Rafael

Jim Lucas wrote:

Dan wrote:
Unfortunatly javascript can't access the filesystem so it can't get 
filenames.  The closest way you could do something like this would be 
to use Java (not javascript, totally different).  It's a permissions 
thing, just the way JS and everything else is designed.


- Dan


[···]


Library should be compatible with Firefox (Lin, Win, Mac), IE and 
Safary.



Thanks in advance for any suggestion(s).

Andrei 




In fact you can access the filesystem with signed javascript scripts. 
 Which by signing you Javascript, you will be allowed to access the 
local file system.


But, again, it is all about the permissions.

Jim
	Actually no. Javascript doesn't allow for client's FS access for 
security reasons, as noted before.


	What you're probably talking about is IE's proprietary implementation 
and the use of COM objects (and there goes the security), but Andrei 
says the solution should be cross-browser, so this doesn't look like an 
option.


Rafael.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: PHP/AJAX File DragDrop

2007-11-30 Thread Warren Vail
I think the risk is that the path shows lots of information about how your
system is configured that is not necessary to transfer the file, so, for
example if uploading something from you My Documents folder on windoz, why
reveal what username you use for system signon, no sense leaving the door
open.

I would suggest you use something like a signed on user name to your site to
organize uploads, and not depend on where a given user stores things on his
system.

Warren Vail

 -Original Message-
 From: Dan [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 30, 2007 4:40 PM
 To: php-general@lists.php.net
 Subject: [PHP] Re: PHP/AJAX File DragDrop
 
 Unfortunatly javascript can't access the filesystem so it can't get
 filenames.  The closest way you could do something like this would be to
 use
 Java (not javascript, totally different).  It's a permissions thing, just
 the way JS and everything else is designed.
 
 - Dan
 
 Andrei Verovski (aka MacGuru) [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi !
 
  Anyone knows PHP/AJAX library which allows to get full path of file
  dropped
  into web browser's window area?
 
  It is required for document archiving system in order to avoid multiple
  (or to
  be more precise, almost endless) usage of open file dialogs from the
  browser.
 
  Library should be compatible with Firefox (Lin, Win, Mac), IE and
 Safary.
 
 
  Thanks in advance for any suggestion(s).
 
  Andrei
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP/AJAX File DragDrop

2007-11-30 Thread Dan
Unfortunatly javascript can't access the filesystem so it can't get 
filenames.  The closest way you could do something like this would be to use 
Java (not javascript, totally different).  It's a permissions thing, just 
the way JS and everything else is designed.


- Dan

Andrei Verovski (aka MacGuru) [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

Hi !

Anyone knows PHP/AJAX library which allows to get full path of file 
dropped

into web browser's window area?

It is required for document archiving system in order to avoid multiple 
(or to

be more precise, almost endless) usage of open file dialogs from the
browser.

Library should be compatible with Firefox (Lin, Win, Mac), IE and Safary.


Thanks in advance for any suggestion(s).

Andrei 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: PHP/AJAX File DragDrop

2007-11-30 Thread Andrés Robinet
You can also use the FileReference ActionScript class in flash. This will
not allow you to drop a file and get it uploaded (will it?) but it supports
multiple file selection. There are some implementations in javascript that
make use of this flash feature to upload multiple files interactively
(search for SWFUpload in google, but there are others as well).
But surely enough... if you require such a thing as drag and drop for files
your best bet is a Java Applet.

Rob
 -Original Message-
 From: Dan [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 30, 2007 9:40 PM
 To: php-general@lists.php.net
 Subject: [PHP] Re: PHP/AJAX File DragDrop
 
 Unfortunatly javascript can't access the filesystem so it can't get
 filenames.  The closest way you could do something like this would be
 to use
 Java (not javascript, totally different).  It's a permissions thing,
 just
 the way JS and everything else is designed.
 
 - Dan
 
 Andrei Verovski (aka MacGuru) [EMAIL PROTECTED] wrote in
 message
 news:[EMAIL PROTECTED]
  Hi !
 
  Anyone knows PHP/AJAX library which allows to get full path of file
  dropped
  into web browser's window area?
 
  It is required for document archiving system in order to avoid
 multiple
  (or to
  be more precise, almost endless) usage of open file dialogs from
 the
  browser.
 
  Library should be compatible with Firefox (Lin, Win, Mac), IE and
 Safary.
 
 
  Thanks in advance for any suggestion(s).
 
  Andrei
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP/AJAX File DragDrop

2007-11-30 Thread Stephen Edberg
On Sat, 1 Dec 2007, Andrei Verovski (aka MacGuru) wrote:

 Hi !

 Anyone knows PHP/AJAX library which allows to get full path of file dropped
 into web browser's window area?

 It is required for document archiving system in order to avoid multiple (or to
 be more precise, almost endless) usage of open file dialogs from the
 browser.

 Library should be compatible with Firefox (Lin, Win, Mac), IE and Safary.


 Thanks in advance for any suggestion(s).

 Andrei



As others have noted, Javascript cannot return the full path to a
client-side document for security reasons. If you need a multiple file
upload interface, you might want to take a look at some extjs ALAX
toolkit-based stuff, eg

http://aariadne.com/uploadform/
http://extplorer.sourceforge.net/

Haven't used either of them, though. I do use extjs alot:

http://extjs.com/

Normally I shy away from 'Web 2.0' kinda stuff, but I've had to develop
some complex dynamic interfaces to a PHP/MySQL backend and had to make the
leap. It's well-documented, the developers are active and helpful
participants in the forums, and it seems to work pretty well
cross-platform (haven't tried it on my Linux/Solaris boxes yet, but
WinXP/Firefox, WinXP/IE, OSX/Firefox, OSX/Safari all seem to work pretty
well. Had some quirks with OSX/Opera, but haven't had a chance to delve
into that.

I also use the HTML_AJAX package -

http://pear.php.net/package/HTML_AJAX

- as I still have some PHP4 left and can't use the native JSON functions.

If extjs doesn't float your boat, you can always look into Scriptaculous,
Dojo, YUI, many others.

steve

...
. Steve Edberg   [EMAIL PROTECTED] .
. Computer Consultant University of California, Davis .
.   (530)754-9127 .
...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP/AJAX File DragDrop

2007-11-30 Thread Andrei Verovski (aka MacGuru)
Hi !

Anyone knows PHP/AJAX library which allows to get full path of file dropped 
into web browser's window area?

It is required for document archiving system in order to avoid multiple (or to 
be more precise, almost endless) usage of open file dialogs from the 
browser.

Library should be compatible with Firefox (Lin, Win, Mac), IE and Safary.


Thanks in advance for any suggestion(s).

Andrei

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] instant messenger php + ajax

2007-05-24 Thread Marco Sottana
hi i am looking for an instant messenger for my web site
i would like to enable also not register user to chat to the other not register 
user in my web site..

where i can find a source code like this ?

[PHP] Re: instant messenger php + ajax

2007-05-24 Thread Darren Whitlen

Marco Sottana wrote:

hi i am looking for an instant messenger for my web site
i would like to enable also not register user to chat to the other not register 
user in my web site..

where i can find a source code like this ?


Lots of the them out there.. google php ajax chat
My personal favourite though has to be http://yurivish.com/yshout/

Bare in mind though, any PHP webserver based chat, will have a HUGE 
demand on the server. Check your bandwidth constantly, it's gonna increase.


Darren

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: instant messenger php + ajax

2007-05-24 Thread Marco Sottana

i would like a one to one chat .. no one to everybody
- Original Message - 
From: Darren Whitlen [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Thursday, May 24, 2007 10:05 AM
Subject: [PHP] Re: instant messenger php + ajax



Marco Sottana wrote:

hi i am looking for an instant messenger for my web site
i would like to enable also not register user to chat to the other not 
register user in my web site..


where i can find a source code like this ?


Lots of the them out there.. google php ajax chat
My personal favourite though has to be http://yurivish.com/yshout/

Bare in mind though, any PHP webserver based chat, will have a HUGE demand 
on the server. Check your bandwidth constantly, it's gonna increase.


Darren

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: instant messenger php + ajax

2007-05-24 Thread Darren Whitlen

Marco Sottana wrote:

i would like a one to one chat .. no one to everybody
- Original Message - From: Darren Whitlen [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Thursday, May 24, 2007 10:05 AM
Subject: [PHP] Re: instant messenger php + ajax



Marco Sottana wrote:

hi i am looking for an instant messenger for my web site
i would like to enable also not register user to chat to the other 
not register user in my web site..


where i can find a source code like this ?


Lots of the them out there.. google php ajax chat
My personal favourite though has to be http://yurivish.com/yshout/

Bare in mind though, any PHP webserver based chat, will have a HUGE 
demand on the server. Check your bandwidth constantly, it's gonna 
increase.


Darren

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






So let me get the idea..
User comes onto the website, User talks to webmaster. Does the webmaster 
want to talk to everybody at the same time? Or just to one user at a time?


Darren

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: instant messenger php + ajax

2007-05-24 Thread Marco Sottana


- Original Message - 
From: Darren Whitlen [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Thursday, May 24, 2007 10:19 AM
Subject: Re: [PHP] Re: instant messenger php + ajax



Marco Sottana wrote:

i would like a one to one chat .. no one to everybody
- Original Message - From: Darren Whitlen [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Thursday, May 24, 2007 10:05 AM
Subject: [PHP] Re: instant messenger php + ajax



Marco Sottana wrote:

hi i am looking for an instant messenger for my web site
i would like to enable also not register user to chat to the other not 
register user in my web site..


where i can find a source code like this ?


Lots of the them out there.. google php ajax chat
My personal favourite though has to be http://yurivish.com/yshout/

Bare in mind though, any PHP webserver based chat, will have a HUGE 
demand on the server. Check your bandwidth constantly, it's gonna 
increase.


Darren

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






So let me get the idea..
User comes onto the website, User talks to webmaster. Does the webmaster 
want to talk to everybody at the same time? Or just to one user at a time?


1)User come onto the website ..
2)website give at the user a name like guest.rand(1,1000);
3)website show a list with all user into the website
4)user can click over a name of over user .. website open a popup






Darren

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Ajax Developer

2007-05-11 Thread tedd

At 1:58 PM -0400 5/9/07, Efrain Sarmiento wrote:

Can someone clarify that for me...I got that directly off job
description from Lehman.  Thanks


Then ask Lehman what a PhotoShop IDE is. And, while you're at it, ask 
if you can have a sky-hook.


tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax Developer

2007-05-11 Thread tedd

At 2:00 PM -0400 5/9/07, Daniel Brown wrote:

   Is it just me, or does it seem like everyone things AJAX is some sort of
PHP extension or new way of programming in PHP?

   The name alone more or less says otherwise AJAX is supposed to be
Asynchronous JavaScript And XML, right?

   Or am I just talking out of my ass again?  I seem to be doing that a lot
today for some reason


Well.. the way I use AJAX is to send commands to a php script that 
then modifies the DOM. So, to me it's just another way for php to 
present data.


Check this out:

http://xn--nvg.com/ajax

Try it and then look at the source. If you use FF, it will show the 
generated source.


Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax?

2007-05-10 Thread Rangel Reale

JavaScript (and AJAX) took the fun out of programming.

Before AJAX, programming for web was easy and fast. Now its the oposite.


- Original Message - 
From: jekillen [EMAIL PROTECTED]

To: Emil Edeholt [EMAIL PROTECTED]
Cc: PHP List php-general@lists.php.net
Sent: Wednesday, May 09, 2007 10:03 PM
Subject: Re: [PHP] Ajax?




On May 9, 2007, at 8:04 AM, Emil Edeholt wrote:


Hi!

What do you guys use to develop ajax applications and do you have any 
good articles on the subject?


I've just about finished an ajaxish site but it wasn't fun. A lot of 
nesting javascript inside php calls, having to write the logic both in 
javascript and php and so on. The source looks ugly and was time 
consuming to debug.


Thanks!


Anything involving javascript development has several built in debugging 
facilities
1: Alert dialogs: You may find it a chore to learn how to use them 
effectively. But
   the current content of any variable can be displayed with an alert 
dialog. You
   have to pay attention to how strings are concatenated; with +, The 
actual

   variable name cannot be quoted.
2: Browser error reporting, in Netscape species, javascript console. Take 
a hint,
all source code text should be formated for Unix/Linux ( line feed 
line endings)
If you do scripting on a Classic Mac OS = OS9, the line endings are 
carriage;

and Windows uses both carriage return and line feed.
return. You will drive your self crazy cussing the console because it 
will not refer

to lines containing syntax errors, but some disrelated lines.
3. View source window in browser to see exactly what the browser is 
getting on

page load.
4. Forms: I have coded special forms just for the sake of development and 
debug
   of javascript apps.  All globals are visible through out the script, 
WITH THE EXCEPTION
   OF SOME THAT ARE DEFINED IN SOURCED JS FILES; Opening a javascript 
window is
   in a function does not seem to register if the function is in a sourced 
file.
5. Patience, patience, patience, some masochism, Several large available 
paper back
   text books. No one will describe all you might need to know about 
issues like rollovers,
   DHTML, etc, Imagination and ingenuity, or the will to search and sift 
through others
   source code until you find what you are looking for, and then making it 
work for you.
  That's it, I have some suggestion that there are systems available for 
javascript but I

  have done without long enough to have my methods and approaches.
One more thing, php and javascript work very well together. I have even 
written a
function to display php variable values as javascript alert dialogs. It 
will not function
as break points for php like it does with javascript, but at least you do 
not have to

decipher php error smeared all over the screen.
And Ajax, even though I have not cracked that particular aspect of 
javascript as yet,

looks very worthwhile.
Jeff K

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 
269.6.4/790 - Release Date: 5/5/2007 10:34





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax?

2007-05-10 Thread Robert Cummings
On Thu, 2007-05-10 at 08:52 -0300, Rangel Reale wrote:
 JavaScript (and AJAX) took the fun out of programming.
 
 Before AJAX, programming for web was easy and fast. Now its the oposite.

Maybe you're doing it wrong :|

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Ajax?

2007-05-09 Thread Emil Edeholt

Hi!

What do you guys use to develop ajax applications and do you have any 
good articles on the subject?


I've just about finished an ajaxish site but it wasn't fun. A lot of 
nesting javascript inside php calls, having to write the logic both in 
javascript and php and so on. The source looks ugly and was time 
consuming to debug.


Thanks!

Kind regards Emil

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Ajax Developer

2007-05-09 Thread Efrain Sarmiento
AJAX Developer  (Web Designer / Developer).  MUST HAVE:  1 year AJAX
Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at lease
an IDE like Photoshop, Dreamweaver, Eclipse or similar.  Jersey City,
NJ, 6 months ongoing.  $560/day C2C.




 

_

Efrain Sarmiento
Technical Recruiter
MISI company

p: 212.355.5585 x332
f: 212.751.5964
c: 917.365.5656
[EMAIL PROTECTED]

Informed Usability  |  Innovative Solutions   |  Reliable Sourcing 
www.misicompany.com http://www.misicompany.com/ 
_

The information contained in this message is sent in the strictest
confidence for the addressee only. It is intended only for the use of
the addressee and may contain legally
privileged/confidential/proprietary information. If you have received
this email in error you are requested to preserve its confidentiality
and advise the sender.

 


Re: [PHP] Ajax Developer

2007-05-09 Thread Stut

Efrain Sarmiento wrote:

AJAX Developer  (Web Designer / Developer).  MUST HAVE:  1 year AJAX
Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at lease
an IDE like Photoshop, Dreamweaver, Eclipse or similar.  Jersey City,
NJ, 6 months ongoing.  $560/day C2C.


Hands up everyone who uses the Photoshop IDE...

-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax Developer

2007-05-09 Thread Davi
Em Quarta 09 Maio 2007 12:12, Stut escreveu:
 Efrain Sarmiento wrote:
  AJAX Developer  (Web Designer / Developer).  MUST HAVE:  1 year AJAX
  Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at lease
  an IDE like Photoshop, Dreamweaver, Eclipse or similar.  Jersey City,
  NJ, 6 months ongoing.  $560/day C2C.

 Hands up everyone who uses the Photoshop IDE...


=P

_o/

hehehe

How can I do an while loop in Photoshop CS 3?? =]
Using the pen tool? On which layer?

thanks! =]

-- 
Davi Vidal
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
Religion, ideology, resources, land,
spite, love or just because...
No matter how pathetic the reason,
it's enough to start a war. 


pgpWAyX29KtcQ.pgp
Description: PGP signature


Re: [PHP] Ajax Developer

2007-05-09 Thread Edward Vermillion


On May 9, 2007, at 10:12 AM, Stut wrote:


Efrain Sarmiento wrote:

AJAX Developer  (Web Designer / Developer).  MUST HAVE:  1 year AJAX
Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at  
lease

an IDE like Photoshop, Dreamweaver, Eclipse or similar.  Jersey City,
NJ, 6 months ongoing.  $560/day C2C.


Hands up everyone who uses the Photoshop IDE...



Ohh! That's in CS3 right?!? Cool! I've gotta get me one of those!

Ed

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax Developer

2007-05-09 Thread Robert Cummings
On Wed, 2007-05-09 at 10:23 -0500, Edward Vermillion wrote:
 On May 9, 2007, at 10:12 AM, Stut wrote:
 
  Efrain Sarmiento wrote:
  AJAX Developer  (Web Designer / Developer).  MUST HAVE:  1 year AJAX
  Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at  
  lease
  an IDE like Photoshop, Dreamweaver, Eclipse or similar.  Jersey City,
  NJ, 6 months ongoing.  $560/day C2C.
 
  Hands up everyone who uses the Photoshop IDE...
 
 
 Ohh! That's in CS3 right?!? Cool! I've gotta get me one of those!

I'm much more partial to the Gimp IDE :)

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax Developer

2007-05-09 Thread Davi
Em Quarta 09 Maio 2007 12:41, Robert Cummings escreveu:
 On Wed, 2007-05-09 at 10:23 -0500, Edward Vermillion wrote:
  On May 9, 2007, at 10:12 AM, Stut wrote:
   Efrain Sarmiento wrote:
   AJAX Developer  (Web Designer / Developer).  MUST HAVE:  1 year AJAX
   Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
   lease
   an IDE like Photoshop, Dreamweaver, Eclipse or similar.  Jersey City,
   NJ, 6 months ongoing.  $560/day C2C.
  
   Hands up everyone who uses the Photoshop IDE...
 
  Ohh! That's in CS3 right?!? Cool! I've gotta get me one of those!

 I'm much more partial to the Gimp IDE :)


MS Paint or Xpaint sounds little better to me... =]


-- 
Davi Vidal
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
Religion, ideology, resources, land,
spite, love or just because...
No matter how pathetic the reason,
it's enough to start a war. 


pgpwVNnRgmJnk.pgp
Description: PGP signature


RE: [PHP] Ajax?

2007-05-09 Thread Edward Kay


 -Original Message-
 From: Emil Edeholt [mailto:[EMAIL PROTECTED]
 Sent: 09 May 2007 16:05
 To: php-general@lists.php.net
 Subject: [PHP] Ajax?


 Hi!

 What do you guys use to develop ajax applications and do you have any
 good articles on the subject?

 I've just about finished an ajaxish site but it wasn't fun. A lot of
 nesting javascript inside php calls, having to write the logic both in
 javascript and php and so on. The source looks ugly and was time
 consuming to debug.

 Thanks!

 Kind regards Emil


Have a look at the various frameworks available since these handle much of
the nasty details:
http://en.wikipedia.org/wiki/List_of_web_application_frameworks#PHP

I've been using Qcodo (http://www.qcodo.com) for a recent web app and am
impressed at how quickly I've been able to develop with it. For
JavaScript/CSS, I've also been using Yahoo User Interface (YUI) components
which I'm also really impressed with: http://developer.yahoo.com/yui/

The thing with frameworks and libraries is that everyone will have their
favourite for one reason or another. You just have to find the one you feel
most comfortable with.

Hope that helps,
Edward

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Ajax Developer

2007-05-09 Thread Edward Kay


 -Original Message-
 From: Robert Cummings [mailto:[EMAIL PROTECTED]
 On Wed, 2007-05-09 at 10:23 -0500, Edward Vermillion wrote:
  On May 9, 2007, at 10:12 AM, Stut wrote:
 
   Efrain Sarmiento wrote:
   AJAX Developer  (Web Designer / Developer).  MUST HAVE:  1 year AJAX
   Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
   lease
   an IDE like Photoshop, Dreamweaver, Eclipse or similar.  Jersey City,
   NJ, 6 months ongoing.  $560/day C2C.
  
   Hands up everyone who uses the Photoshop IDE...
  
 
  Ohh! That's in CS3 right?!? Cool! I've gotta get me one of those!

 I'm much more partial to the Gimp IDE :)


Ah, but can you code JAVASCRIRPT in the Gimp IDE? ;)

I'm not sure why the job requires you to lease the IDE though - Photoshop is
a bit pricey, but it's not that bad!

E

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax Developer

2007-05-09 Thread Edward Vermillion


On May 9, 2007, at 10:41 AM, Robert Cummings wrote:


On Wed, 2007-05-09 at 10:23 -0500, Edward Vermillion wrote:

On May 9, 2007, at 10:12 AM, Stut wrote:


Efrain Sarmiento wrote:
AJAX Developer  (Web Designer / Developer).  MUST HAVE:  1 year  
AJAX

Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
lease
an IDE like Photoshop, Dreamweaver, Eclipse or similar.  Jersey  
City,

NJ, 6 months ongoing.  $560/day C2C.


Hands up everyone who uses the Photoshop IDE...



Ohh! That's in CS3 right?!? Cool! I've gotta get me one of those!


I'm much more partial to the Gimp IDE :)



Do I need to update to RH5.2 to get that? I don't see it in my 5.0  
distribution


Ed

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax Developer

2007-05-09 Thread Daniel Brown

On 5/9/07, Edward Kay [EMAIL PROTECTED] wrote:



Ah, but can you code JAVASCRIRPT in the Gimp IDE? ;)



   Is JAVASCRIRPT another of those Web 2.0 languages?  ;-P

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107


RE: [PHP] Ajax?

2007-05-09 Thread bruce
hey edward...

from my reading.. i thought yahoo's user interface (yui) components where
for interfacing with yahoo am i missing something here??

thanks

-bruce


-Original Message-
From: Edward Kay [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 09, 2007 8:44 AM
To: Emil Edeholt; PHP General List
Subject: RE: [PHP] Ajax?




 -Original Message-
 From: Emil Edeholt [mailto:[EMAIL PROTECTED]
 Sent: 09 May 2007 16:05
 To: php-general@lists.php.net
 Subject: [PHP] Ajax?


 Hi!

 What do you guys use to develop ajax applications and do you have any
 good articles on the subject?

 I've just about finished an ajaxish site but it wasn't fun. A lot of
 nesting javascript inside php calls, having to write the logic both in
 javascript and php and so on. The source looks ugly and was time
 consuming to debug.

 Thanks!

 Kind regards Emil


Have a look at the various frameworks available since these handle much of
the nasty details:
http://en.wikipedia.org/wiki/List_of_web_application_frameworks#PHP

I've been using Qcodo (http://www.qcodo.com) for a recent web app and am
impressed at how quickly I've been able to develop with it. For
JavaScript/CSS, I've also been using Yahoo User Interface (YUI) components
which I'm also really impressed with: http://developer.yahoo.com/yui/

The thing with frameworks and libraries is that everyone will have their
favourite for one reason or another. You just have to find the one you feel
most comfortable with.

Hope that helps,
Edward

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax?

2007-05-09 Thread Greg Donald

On 5/9/07, bruce [EMAIL PROTECTED] wrote:

from my reading.. i thought yahoo's user interface (yui) components where
for interfacing with yahoo am i missing something here??


Yes.  :)

The Yahoo! User Interface (YUI) Library is a set of utilities and
controls, written in JavaScript, for building richly interactive web
applications using techniques such as DOM scripting, DHTML and AJAX.

http://developer.yahoo.com/yui/


--
Greg Donald
http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax?

2007-05-09 Thread Satyam
I´ve been using the YUI library and, specifically for AJAX, the Connection 
Manager (http://developer.yahoo.com/yui/connection/), but also many of the 
other components in YUI.


I find that some of the frameworks are a little heavy, covering both the 
JavaScript side and the PHP server side. In some you deal with the PHP side 
and in some misterious way JavaScript gets sent to the client, but they are 
too obscure for my taste, I prefer to know what goes on.


YUI coupled with Firefox with the FireBug debugger plugin is a great 
combination and on the server side you are quite free to do and use whatever 
you want. And don't miss the videos of the presentations of  Douglas 
Crockford on JavaScrit and the DOM.


Satyam



- Original Message - 
From: Emil Edeholt [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Wednesday, May 09, 2007 5:04 PM
Subject: [PHP] Ajax?



Hi!

What do you guys use to develop ajax applications and do you have any good 
articles on the subject?


I've just about finished an ajaxish site but it wasn't fun. A lot of 
nesting javascript inside php calls, having to write the logic both in 
javascript and php and so on. The source looks ugly and was time consuming 
to debug.


Thanks!

Kind regards Emil

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 
269.6.6/794 - Release Date: 08/05/2007 14:23





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax?

2007-05-09 Thread Martin Marques

Greg Donald escribió:

On 5/9/07, bruce [EMAIL PROTECTED] wrote:

from my reading.. i thought yahoo's user interface (yui) components where
for interfacing with yahoo am i missing something here??


Yes.  :)

The Yahoo! User Interface (YUI) Library is a set of utilities and
controls, written in JavaScript, for building richly interactive web
applications using techniques such as DOM scripting, DHTML and AJAX.

http://developer.yahoo.com/yui/


Prototype is very good too.

http://www.prototypejs.org/

Combined with Rico you can do very interesting things:

http://www.openrico.org/

--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-
Martín Marqués  |   Programador, DBA
Centro de Telemática| Administrador
   Universidad Nacional
del Litoral
-

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Ajax?

2007-05-09 Thread bruce
hey greg!

thanks for the update... have to have my guys check it out..

to be honest, i'm not sure where i got the impression that the yui was for
yahoo!!!

thanks mukch!


-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 09, 2007 9:28 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Ajax?


On 5/9/07, bruce [EMAIL PROTECTED] wrote:
 from my reading.. i thought yahoo's user interface (yui) components where
 for interfacing with yahoo am i missing something here??

Yes.  :)

The Yahoo! User Interface (YUI) Library is a set of utilities and
controls, written in JavaScript, for building richly interactive web
applications using techniques such as DOM scripting, DHTML and AJAX.

http://developer.yahoo.com/yui/


--
Greg Donald
http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax Developer

2007-05-09 Thread Richard Lynch
On Wed, May 9, 2007 10:09 am, Efrain Sarmiento wrote:
 AJAX Developer  (Web Designer / Developer).  MUST HAVE:  1 year AJAX
 Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
 lease
 an IDE like Photoshop, Dreamweaver, Eclipse or similar.  Jersey City,
 NJ, 6 months ongoing.  $560/day C2C.

Photoshop as an IDE?

That must be pretty interesting... :-)

Where's the PHP?

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax Developer

2007-05-09 Thread Richard Lynch
On Wed, May 9, 2007 10:12 am, Stut wrote:
 Efrain Sarmiento wrote:
 AJAX Developer  (Web Designer / Developer).  MUST HAVE:  1 year AJAX
 Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
 lease
 an IDE like Photoshop, Dreamweaver, Eclipse or similar.  Jersey
 City,
 NJ, 6 months ongoing.  $560/day C2C.

 Hands up everyone who uses the Photoshop IDE...

I switch to GIMP IDE ages ago.

All the same features, albeit under different menus, but OpenSource
and Free and runs on my OSes of choice.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Ajax Developer

2007-05-09 Thread Efrain Sarmiento
Can someone clarify that for me...I got that directly off job
description from Lehman.  Thanks 


_

Efrain Sarmiento
Technical Recruiter
MISI company

p: 212.355.5585 x332
f: 212.751.5964
c: 917.365.5656
[EMAIL PROTECTED]

Informed Usability  |  Innovative Solutions   |  Reliable Sourcing 
www.misicompany.com
_

The information contained in this message is sent in the strictest
confidence for the addressee only. It is intended only for the use of
the addressee and may contain legally
privileged/confidential/proprietary information. If you have received
this email in error you are requested to preserve its confidentiality
and advise the sender.


-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 09, 2007 1:56 PM
To: Efrain Sarmiento
Cc: php-general@lists.php.net
Subject: Re: [PHP] Ajax Developer

On Wed, May 9, 2007 10:09 am, Efrain Sarmiento wrote:
 AJAX Developer  (Web Designer / Developer).  MUST HAVE:  1 year AJAX 
 Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at 
 lease an IDE like Photoshop, Dreamweaver, Eclipse or similar.  Jersey 
 City, NJ, 6 months ongoing.  $560/day C2C.

Photoshop as an IDE?

That must be pretty interesting... :-)

Where's the PHP?

--
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax Developer

2007-05-09 Thread Richard Lynch
On Wed, May 9, 2007 10:54 am, Daniel Brown wrote:
 On 5/9/07, Edward Kay [EMAIL PROTECTED] wrote:
 Ah, but can you code JAVASCRIRPT in the Gimp IDE? ;)


 Is JAVASCRIRPT another of those Web 2.0 languages?  ;-P

No, but here's a Tip:

If you spell it that way, the code you write just plain doesn't run,
and nothing tells you what went wrong.

*THAT* particular typo only wasted a half-day for me a couple weeks ago.

Sigh.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ajax Developer

2007-05-09 Thread Daniel Brown

   Is it just me, or does it seem like everyone things AJAX is some sort of
PHP extension or new way of programming in PHP?

   The name alone more or less says otherwise AJAX is supposed to be
Asynchronous JavaScript And XML, right?

   Or am I just talking out of my ass again?  I seem to be doing that a lot
today for some reason



On 5/9/07, Richard Lynch [EMAIL PROTECTED] wrote:


On Wed, May 9, 2007 10:09 am, Efrain Sarmiento wrote:
 AJAX Developer  (Web Designer / Developer).  MUST HAVE:  1 year AJAX
 Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
 lease
 an IDE like Photoshop, Dreamweaver, Eclipse or similar.  Jersey City,
 NJ, 6 months ongoing.  $560/day C2C.

Photoshop as an IDE?

That must be pretty interesting... :-)

Where's the PHP?

--
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107


  1   2   3   >