Jump to content

skaterdav85

Members
  • Content Count

    874
  • Joined

  • Last visited

Posts posted by skaterdav85


  1. So I'm using file_get_contents() in php to get the contents of an RSS feed and I'm parsing through it using simplexml. I got it working fine, but for some reason when I browse to the actual RSS feed in the browser, the latest item is from a few days ago on October 7th, but the latest dated item pulled from my php script is from August. Anyone have similar issues with RSS feeds not returning the latest? I'm not sure how to fix this or what is happening... Edit: Im trying to pull from a Wordpress generated RSS feed. I think it has something to do with the way they generate clean URL's. Im not sure how to tell it to give me the newest 5. The feed I am trying to read from is: http://www.thearmpit.net/eng/feed/

    • Like 1

  2. interesting. thanks. i did not know about that in CSS 3. I guess I could use the :hover pseudo class on all the anchors within #portfolio-types to make the menu visible when the user hovers over each of those links, but now that i think about it, I should probably just use JS since more people have JS enabled than the number of people with browsers that support CSS 3.


  3. I've heard of people using the hover pseudo class to toggle the visibility of things such as in drop down menus in navigations, rather than using JS. I'm trying to learn that but im not quite sure how. Here is my HTML. I want to hover over the anchor Portfolio and toggle the display of the ul right below it.

    <a href="">Portfolio</a><ul class="portfolio-types" id="portfolio-types">      <li><a href="">Shorts</a></li>      <li><a href="">Music Videos</a></li>      <li><a href="">Commercials</a></li>      <li><a href="">Still</a></li> </ul>               	 

    • Like 2

  4. I've created a regular expression using a positive lookbehind and I've tested it on this RE test site: http://gskinner.com/RegExr/ It's valid and it works, but when I try and create a regexp object in JS using that same expression, I get an error.

    var re = /(?<=beans.\sTotal\s=\s)[0-9]*/g;

    Chrome Console Error: Uncaught SyntaxError: Invalid regular expression: /(?<=beans.\sTotal\s=\s)[0-9]*/: Invalid groupJS Bin Error: Line 1: var re = /(?<=beans.\sTotal\s=\s)[0-9]*/g; --- Expected ':' and instead saw '<'.


  5. If I want to create a blue box on a page using a span, how come I have to declare it as a block element using display:block, rather than just assigning it a width and height? I.e.

    span {    width:100px;    height:100px;    background-color:blue;     display:block; }

    instead of

    span {    width:100px;    height:100px;    background-color:blue; }


  6. check out this demo page:http://jsbin.com/iheloq/edit#javascript,html If you zoom in using on mac (apple +) or on pc (control +), you eventually see the red background of the container div show on the right hand side even though the width of the 2 child div's = the width of the parent div, so it shouldnt show through. Any idea why? My only guess is that browser's are not perfect and when you zoom in that much, it doesn't have that much preciseness.


  7. According to an article on Nettus, they say that IE implements the box model where if you specify the width of an element and apply padding and a border, the total width will equal the value specified for width and IE will factor in the padding and borders. So, (content area + borders + padding = width).http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-did-internet-explorer-get-the-box-model-right/ However, on W3 Schools, it says that IE only does this when you don't declare the DOCTYPE.http://www.w3schools.com/css/css_boxmodel.asp Which one is it? I dont have easy access to IE because I use a mac.


  8. on the table give it a width and apply the auto value to the margin, like this:

    table { width:800px;margin:0 auto;}

    i dont think this works in IE though, so what you could also do is wrap the table in a div, give the table a width, and do a text-align:center; on the div.


  9. I've been reading about REST web services to get a better idea of the theory, and I was wondering about some of the terminology. In this article (http://www.packetizer.com/ws/rest.html), they talk about resources and representations. From my understanding, it sounds like 'representation' is used to mean the way the data is given to the requester (an application or a user), be it XML, JSON, or plain text. Would you agree?


  10. true, i probably should have looked at his post count before addressing him. Even though there aren't experts yet, I'm sure people will come. Having a forum titled Flash seems kind of pointless, especially since Flash alone seems to be dying. However, I think it may be more useful to broaden the category to include rich internet applications (Flex and Actionscript).


  11. Ofir, I suggest you look at a basic object oriented programming tutorial. If you can find one for C#, that'd be really useful. Otherwise, one in Java would be useful because Java and C# are quite similar in syntax. Lately I have been working on a project using the Flex framework and ActionScript 3. Although it might be difficult to have a full on tutorial on Actionscript 3, I think it'd be useful to at least dedicate a forum for deploying ActionScript based apps. I've had quite a few questions while using Actionscript 3, since its a mix between JS and a traditional OO language like Java, and it'd be helpful to discuss ActionScript 3 with other developers.

×
×
  • Create New...