Jump to content

johnnyg24

Members
  • Posts

    180
  • Joined

  • Last visited

Everything posted by johnnyg24

  1. I need help getting a value from a rather complicated JSON string. I am using eval() in a javascript function called json and then doing the following on a classic ASP page: X = {"status": "ok","error": [],"method": "get_metadata","result": [{"metadata": {"med": {"action": "search", "": "0", "type": "int"},"F206": {"action": "search", "": "0", "type": "int"},"sty": {"action": "search", "": "3", "type": "int"},"F701": {"action": "search", "": "0", "type": "int"},"rtl": {"action": "mixed", "": "41.98", "type": "float"},"hev": {"action": "search", "": "0", "type": "int"},"use": {"action": "search", "": "2", "type": "int"},"rank": {"action": "mixed", "": "0.1428", "type": "float"},"dsc": {"action": "mixed", "": "ICON 4 NAVY", "type": "string"},"avl": {"action": "search", "": "46.05", "type": "float"},"whs": {"action": "mixed", "": "20.99", "type": "float"},"phs": {"action": "mixed", "": "1", "type": "int"},"ufac": {"action": "search", "": "0", "type": "int"},"dt": {"action": "mixed", "": "14701", "type": "int"},"con": {"action": "search", "": "28", "type": "int"},"cabu": {"action": "search", "": "0", "type": "int"},"col": {"action": "mixed", "": "300", "type": "int"},"out": {"action": "search", "": "0", "type": "int"}},"filepath": "ICON-4.jpg"}]} dim Meta : set Meta = json(X) 'this is done serverside I am looking to get the value for 'sty' which should be '3'. I can't wrap my head around it in ASP (and yes it has to be done in ASP) thanks
  2. This could be a crazy question but if I'm flushing my response to the screen during a very long loop will the page never hit the Server.ScriptTimeout time I set? I ask because I'm sending about 10,000 emails and my page will timeout before it finishes sending the emails. I'm currently flushing the email address to the screen after each send so I can see where it fails if it does. I also, don't want to set the timeout value to some crazy length. Thanks
  3. I'm trying to email an html page using outlook 2010. The email contains css media queries for mobile devices. Can anyone tell me why this css media query is not working when viewing the email on an iPhone 4s? The email looks like it would on a desktop screen only much smaller. It displays properly when I view the email in safari on the iPhone. Here is my media query: @media only screen and (max-width : 480px),only screen and (max-device-width : 480px) ,only screen and (-webkit-max-device-pixel-ratio : 2),only screen and (-webkit-min-device-pixel-ratio : 2){} Thanks
×
×
  • Create New...