cross domain drop down menus

  • Started
  • Last post
  • 1 Response
  • wwfc

    Hi All,

    Don't know if this possible - and so far I haven't been able to make it work!

    I have been working on a site that is hosted on one server but also has a recruitment/opportunity section that is hosted on another server.

    I am trying to get the search fields/drop downs from the other server to work on the server that I have access to - but I can't get the drop downs to display any of the added jobs!!!

    I know that this might sound dumb - but does anyone have experience of doing this - server I have access to does support php but doesn't have a mysql db facility - the server that I am trying to link up to is (I am guessing) cold fusion as the url ends in .cfm

    Anyone know if this is possible? iframes are not really an option as I only want the two drop down, keyword field and submit button, and not the entire page!

    Is this possible without running a database from my server? The form currently looks like this...

    <form action="http://careers.vurvexpress.com/joblist.cfm" target="_new" onsubmit = "return window.open('','_new','toolbar=no,location=no, directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=600,height=550')" method="post" enablecab="No" name="txtjobsearch">
    <input type="hidden" name="szWID" value="16977" />
    <input type="hidden" name="szCID" value="76398" />
    <input type="hidden" name="szSiteID" value="1831" />
    <table border="0" cellpadding="5" cellspacing="2" width="100%">
    <input type="Hidden" name="txtFromDate" value="">
    <input type="Hidden" name="txtToDate" value="">
    <tr>
    <td width="20%" align="right" id="http://careers.vurvexpress.com/joblist.cfm/TDSearchItem">Job Title:</td>
    <td align="left"><select name="cboTitle" id="searchselect">
    <option value="" selected>-All current positions-

    </select>
    </td>
    </tr>
    <input type="Hidden" name="cboDepartment" value="">
    <tr>
    <td align="right" id="http://careers.vurvexpress.com/joblist.cfm/TDSearchItem" valign="top">Location:</td>
    <td align="left"><select name="cboLocation" id="searchselect">
    <option value="" selected>-All current locations-

    </select>
    </td>
    </tr>
    <tr>
    <td width="20%" align="right" id="http://subdomain.maindomain.com/default.cfm?szWID=16977&amp;szCid=76398&amp;szSit eID=1831/TDSearchItem">Required Words:</td>
    <td width="*" align="left"><input type="Text" size="38" name="txtKeyWord" id="searchselect" value=""></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td id="TDxxsmall">* Separate by commae.g. (Sales,Software)</td>
    </tr>
    <tr>
    <td colspan="2" align="center"><input name="submit" type="submit" id="inputbutton" value="Search"></td>
    </tr>
    </table>
    </form>

    I am hoping that someone might know if this firstly possible and secondly how it can be done?

    Either way happy easter QBN!

  • stupidresponse0

    i think you have a fundamental misunderstanding of how server generated forms work. the server constructs the form dynamically and populates it with data when the URL on their server containing the form is visited. you can't just copy the resultant form and expect it to magically populate with data. what you can do is write a script with php that visits the URL on their server that serves this form, and parse the resultant html to extract the fields that you want and display them within your own page.