Jump to content

matfish

Members
  • Posts

    242
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    UK

matfish's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Using the code from my previous post, I've got that working. But another form of XML I'm dealing with is: <xml> <item Mon="9:00am" /> <item Tue="9:30am" /> <item Wed="10:00am" /> </xml> I'm trying to get the node/variable name of "Mon/Tue/Wed" into an array alongside it's time in a loop? Any ideas? Thanks for your help.
  2. I think I'm getting my head around it now. I'm currently using: $xmlstr = <<<XML <xml> <item id="1" body="content 1" /> <item id="2" body="content 2" /> </xml> XML; $xml = new SimpleXMLElement($xmlstr); foreach ($xml->item as $data) { echo $data['id'].": ".$data['body']."<br />"; } Many thanks
  3. Hi, thanks, I did have a look at that but does it support the layout I'm having trouble with? I keep getting string errors. Many thanks
  4. Hi there, The usual way I use XML is using: <xml> <item> <id>1</id> <body>content 1</body> </item> <item> <id>2</id> <body>content 2</body> </item> </xml> However I'm having to pull the content from a CMS which is out of my control which uses: <xml> <item id="1" body="content 1" /> <item id="2" body="content 2" /> </xml> Is there a way to parse and loop through this type of XML formatting easily and put into a PHP array? Thanks in advance!
  5. Hi there, I have Russian content as an Excel spreadsheet to import into a database. I have converted it to .CSV but it does not recognise the Russian characters and replaces with question marks. Is there another way to import the spreadsheets? Or a way for the CSV to understand the language? Many thanks
  6. Hi there, I need to produce an XML file which is outputting French characters, which then feeds a Flash application. However, I can't seem to output uppercase French special characters (lowercase seems fine) I'm using the UTF-8 header. Any suggestions? Many thanks
  7. Brilliant thank you. Removing the comma in the string, converting it to a number then adding the amounts together worked a treat. However, how do I go about number formatting this back to x,xxx.xx like UK currency? Many thanks for your help.
  8. Hi there, I have a shopping basket which I'm trying to add up in JS depending on which delivery method the customer chooses, however I have values such as 1,200 + 25.00 but I keep getting "NaN" when trying to add them I have a feeling it's the larger values - any help?
  9. I've been trying things like this for a while. Can't seem to pull the variable from within the iFrame. You can push the variable through from outside the iFrame, but I guess thats avoiding what we are try to do!
  10. Hi there, the code I have so far is: <script> function showDiv(){ if($('#YourDiv').is(":visible")){ $('#YourDiv').hide(); }else{ $('#YourDiv').show(function(){ $('.fullWindow').click(function(){ $('#YourDiv').hide(); }); }); }// }//showDiv() </script> I'm not sure how to use bind yet so when the .fullWindow (which is a div around the whole page) is clicked it hides the Div overlay and doesn't let me action a click within the Div. Also, there seems to be a bit of a transition/animation where it slides down rather than just showing immediately. Any idea how to remove the animation? Thanks for your help
  11. There is a close button, but customer feedback and analytic's are showing they are clicking on the white area of the body of the page rather than clicking the close button. Stupid people. I'll check out binding... thanks
  12. Hi there, I'm using JQuery to click "View Basket" which an DIV overlay then appears with your items in the div. I'm also using a body onclick so you can click anywhere on the page which then hides the basket. But I've added links in the Div Overlay now so you can remove an item from the basket, but the body onclick kicks in and just hides the Div again. Any ideas how I can click anywhere on the page to hide the Div overlay but also have the functionality to click a link within the Div and not hide the Div? Many thanks
  13. Hi, Yes Yes, I know, IE6 sucks big time. Not only do you need a stylesheet to place everything properly but my other big issue is that it's crashing with my Javascript. It works in all browsers, yes - even IE7&8, but the client is requesting it needs to be fixed for IE6 for the time being. I'm using JQuery for simple image roleovers, fading in/out and the main one I guess is for it's Ajax query. But everytime it runs the Ajax the whole thing crashes. I was just wondering if anyone has any input before I start pasting code for you to view? Many thanks
  14. hmmm, Is there any way of getting the query string window.location.search.substring(1) for example from within the iFrame? I'm trying to do all this from within the iFrame as the iFrame will be hosted elsewhere. Many thanks
  15. Sorry for late reply, this works just as needed thank you.
×
×
  • 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.