Jump to content

idy

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

idy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Can a website block the use of file_get_contents ? Example : file_get_contents("http://www.google.com") works fine, but file_get_contents("http://www.petitscailloux.com/Follow.aspx?sUrl=http://www.seloger.com/199986/16271207/detail.htm") does not. Any clues or ways to circumvent (use curl ?) ? Thanks a lot !
  2. Just to make sure, the way you suggest me to go round the problem vs. the normal user is to use Ajax if possible ? jerastraub > I am actually trying to get some inspiration from the website I mentioned... I wish I could do such a job, but alas, this is not my work !
  3. OK so if I understand correctly, you mean I should try to do some Ajax stuff there ? Is it the case for instance on that site http://www.propsmart.com/homes-for-sale/US/San-Francisco-metro ?
  4. Hello ! I have put the results of an SQL query into a PHP array. I then pass on this array into a javascript array to manipulate these data in javascript (especially with google maps). But if I click on View source code, anayone can display the full content of this javascript array. How could I hide these data ? Thanks for your help !
  5. Actually the variable $array is already used in my PHP script before writing the JS function. If I write : [code] var result = '<? echo $array[0]; ?>'; [/code] I do have the content of $array[0] into result. The only thing I am trying to do is to retrieve the JS variable id instead of the hard-coded value 0 into $array. Or is still the same problem ? Thanks !
  6. Hello ! I have the following JS function [code]function test(id) { var result = '<? echo $array[' + id + ']; ?>'; alert(result); }[/code] which does not send anything. How is it possible to send the javascript variable id to the PHP variable (array) $array ? Thanks a lot.
  7. Thanks for your quick answer, but I am not sure your solution prevents me from running the query over again. My point was actually that once the query is run the first time, any further filter by the user (through a checkbox for instance) should select a subset of the initial results, and non-relevant results should be hidden dynamically (without refreshing the whole page). Is this clear ? Thanks a lot.
  8. Hello to you all ! I would need your advice and suggestions on how to build the following code. Please note that I am not specifically asking for the full code (!) but I am struggling to get the concepts all perfectly right. 1. The user enters keywords in a search bar. That's easy ; 2. The corresponding data is retrieved from a database through a standard PHP query. That's OK for me ; 3. Now imagine there is a checkbox next to the search bar, allowing the user to filter the results in step 2 according to the checkbox's criteria. How can I automatically hide or highlight the filtered results without making a new query and without reloading the whole page ? I guess there is some javascript / ajax trick there... In detail : [1] Table contents : Column A | Column B car | blue car | red car | blue truck | blue truck | red truck | green [2] Search bar : looks into column A, and displays results in the following format : if "car" is sought for : car | blue car | red car | blue [3] Now imagine there is a checkbox beneath the search bar, allowing the user to select a colour between red, blue and green (or a combination if more than one checked). I have tried to give the same ID (=colour) for each row returned in [1], and then put nothing in the div when a checkbox was unchecked. However, this does not work out (only the first match is hidden) because IDs are unique. Please remember I am trying to automatically update the results table without refreshing the whole page. Thanks a lot for your help in step [3].
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.