treehouse : what would you like to learn today?
Web Design Web Development iOS Development

asp

  • HTML5 video, flowplayer vs. Firefox

    Thanks for the answer. I just had to paste: AddType audio/ogg oga ogg AddType video/ogg ogv Into the .htaccess file. Works like a charme ;)
    Comment by asp November 2011 permalink
  • Spot the problem!

    Hi I got it to work in my Fierfox. But that is the latest version. Maby if you put background: none; on the link tags the problem will be fixed.
    Comment by asp February 2011 permalink
  • AJAX problem

    Well, I figured it out. And here is the result: //ajaxing post $(function() { var $article = $("#article"), $eldre = $(".eldre"), $siteURL = "http://" + top.location.host.toString(), $URL = '', …
    Comment by asp February 2011 permalink
  • Javascript will not allow to wright() html

    I solved it. It was only a mather of switching .innerHTML to .value <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona…
    Comment by asp July 2010 permalink
  • Detect selected text

    Thank you so much, It works perfectly.
    Comment by asp June 2010 permalink
  • Detect selected text

    Nice just what I was looking for =D I noticed that it adds a lot of spans at the start of the tag when you just click the button without any text selected. Is there a way to stop that? And is there a possibility to remove the highlighting if you …
    Comment by asp June 2010 permalink
  • Detect selected text

    This is what I'm trying to do. http://mathiasb.no/stuff/note/show.png First I just have a plain text Then i select a portune of the txst and press the "Add class" button. And this adds a class with yeallow background to the select…
    Comment by asp June 2010 permalink
  • Detect selected text

    I'm sorry, it wasn’t what I was looking for. I'll try to explain again. If you got a tag with text and you want to copy the part in the middle of it to word. You first select it and then pres ctrl+c. I want to add a class to the selected…
    Comment by asp June 2010 permalink
  • Detect selected text

    Oki, I understand. But it wasn’t exactly what I was hoping for. I'm trying to find a script that can detect if an area of a tag is selected. Like if I want to add a class to the text that is bold in this paragraph: Lorem ipsum dolor sit am…
    Comment by asp June 2010 permalink
  • Multible variables

    Thank you, I got it to work :D
    Comment by asp January 2010 permalink
  • Add url to textfield

    Nice :D Thank you, I got it to work.
    Comment by asp November 2009 permalink
  • Add url to textfield

    Nice :D It seems to be what I'm looking for, but just to be on the safe side... This works with php to right? My idea was to add a URL to the txtfield, but then I need to add the value of the URL. And if that is going to be the value of the…
    Comment by asp November 2009 permalink
  • Add url to textfield

    This is how the php displays the URL's that can be chosen. The point is that when the user clicks on the image the jquery adds the files_URL to a regular text box. while($row = mysql_fetch_array($result)) { …
    Comment by asp November 2009 permalink
  • Trace

    Thanks I got it to work. ;) It was just what I needed :D
    Comment by asp October 2009 permalink
  • Rich text editor

    In the same way that growing your own wheat and processing it into food is "simpler" than buying a box of Cheerios? :roll: Get your point :D I'll see if I can't digg in on the Yahoo solutin. Thanks.
    Comment by asp July 2009 permalink
  • Rich text editor

    My first thought was to use a prebuilt. But I didn’t like the design and it didn’t fit with my theme. I also like to keep it simple and make it from scratch. ;)
    Comment by asp July 2009 permalink
  • Rich text editor

    I have also tryed to use "append" to the textfield, but it did not work. Is there any other way to add stuff (text) to a textfield?
    Comment by asp July 2009 permalink
  • Mouseover/ Linking issue

    HI! Maby these links can help http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything http://docs.jquery.com/Attributes/addClass I have also made a some code $(document).ready(function() { $('#branding').hov…
    Comment by asp July 2009 permalink
  • Get the ID using javascript/jquery

    Now I hav made a new script. I can't get it to work, but I'm wondering if some of you cold figger out whats wrong. $(\".index\").click(function () { //var to send, the id of the other div var id = element.attr(\&qu…
    Comment by asp July 2009 permalink
  • Get the ID using javascript/jquery

    Sorry, can’t get it to work. I'll just lay the project to rest for now and test it in small scale.
    Comment by asp June 2009 permalink
  • How to dynamically size a with jQuery?

    Oki ;) Maybe I'll try to refine it a little. But is it that the margin always has to be 2.6em that is so important?
    Comment by asp June 2009 permalink
  • How to dynamically size a with jQuery?

    Hi! I made this using plain CSS. HTML: Test content1 content2 content3 and the CSS: #wrapper { position:absolute; left:0px; top:0px; width:100%; height:100%; padding…
    Comment by asp June 2009 permalink
  • Get the ID using javascript/jquery

    Well now I have made this script: $(function(){ $(\".index\").click(function () { //var to send, the id of the other div var id = element.attr(\"id\"); //if the div is hidden do your thing if ($(\"#…
    Comment by asp June 2009 permalink
  • Get the ID using javascript/jquery

    EDIT: I understand now... Thank you! Oki, I’ll take a look at it, but I still don’t understand hove I can do this without reloading the page.
    Comment by asp June 2009 permalink
  • Get the ID using javascript/jquery

    I got the jquery function to work, but not in the main part. I'll post an image to show you what I really want to do. http://mathiasb.no/stuff/Fil_save/bilder/demo.jpg You can see on the image that it’s a list with php generated elements. Whe…
    Comment by asp June 2009 permalink
  • Get the ID using javascript/jquery

    Thank you! I think I understand.
    Comment by asp June 2009 permalink