It works!!! Thanks so much!

I put   {{response.files.append("
http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/themes/swanky-purse/jquery-ui.css
")}}

and it works :D



On Mon, Sep 19, 2011 at 11:03 AM, Anthony Bastardi <[email protected]>wrote:

> I think response.files should work with external URLs as well -- try it (it
> just takes a list of URLs of files).
>
> Anthony
>
> On Mon, Sep 19, 2011 at 2:01 PM, Beatris Rusu <[email protected]>wrote:
>
>> Also, if I want to change the css theme the way pbreit suggested, I do
>> this
>>
>> <link rel="stylesheet" href="http://http://ajax.googleapis.com/ajax/
>> > libs/jqueryui/1.8.5/themes/swanky-purse/jquery-ui.css" type="text/
>> > css">
>>
>> instead of
>>
>> {{response.files.append(URL('static','jQueryUI/css/custom-theme/jquery-
>> ui-1.8.11.custom.css'))}}
>>
>> and I looked at page source and it does include the link but before
>> including any of the javascript files and so it does not apply the theme
>> from google APIS. So I am wandering if the order matters?
>> I still have my JQueuryUI included with the files.append insde my layout.
>> Also, is there like a reponse.append sort of method where I can append an
>> external link like the theme from google APIS so it would add it correctly
>> inside the URL list that file appends handles?
>>
>>
>> Thank you!
>>
>> (Too many questions, I know, I do not wanna overwhelm you! )
>>
>>
>> On Mon, Sep 19, 2011 at 10:42 AM, Beatris Rusu <[email protected]>wrote:
>>
>>> I am sorry, I am just a bit new with this blog thing. I did a just
>>> [Reply] to the last post so everybody could see the below message. I am a
>>> bit frustrated bc I wish I could get an email each time somebody a general
>>> reply  to the post that I created. Wouldn't it be nice for me just to send
>>> you an email from my gmail and then the blog to be updated to a new reply on
>>> the post?
>>>
>>> Thank you so much for all your help and cooperation. This helps a lot and
>>> makes me continue wanna use web2py! I really appreciate your patience and
>>> help!
>>>
>>> This is what I replied to your last message:
>>> "
>>> Very interesting behavior. I checked in the page source, and even though
>>> my custom jQueryUI files append lines are commented, for some reason they
>>> are still included. I think it has to do with that files.append...I think
>>> that once those files are appended, they do not automatically get removed if
>>> I just comment those lines out inside my layout before including the
>>> webajax.html. If I use files.insert inside webajax.html this behavior does
>>> not happen. So, I guess I don't like this files.append thing because it does
>>> not offer me the possibility to quickly remove files appended by commenting
>>> out code.
>>> What do you think about this?
>>> "
>>>
>>>
>>> On Mon, Sep 19, 2011 at 9:56 AM, Anthony Bastardi 
>>> <[email protected]>wrote:
>>>
>>>> On Mon, Sep 19, 2011 at 12:47 PM, Beatris Rusu 
>>>> <[email protected]>wrote:
>>>>
>>>>> I think you might be right. I just get this really weird behavior
>>>>> happening, like I comment my custom jquery ui file appends in layout, but 
>>>>> i
>>>>> leave my view untouched to still include the accordion and the tabs, and 
>>>>> for
>>>>> some reason when I open my index my accordion and tabs still show up
>>>>> correctly like my custome jquery ui are included. I do not understand this
>>>>> behavior. That is why at some point I thought that oh maybe web2py comes
>>>>> with accordion. Do you know of web2py having this behavior?
>>>>>
>>>>
>>>> Have you looked at the HTML source rendered in the browser to confirm
>>>> that the files are no longer included in the head? Use the browser tools to
>>>> see if they are actually being loaded.
>>>>
>>>>>
>>>>>
>>>> [ALso, not sure why these emails are not posted on the blog anymore, but
>>>>> just my personal email - I guess is because i chose to click on "Reply to
>>>>> Author, button"]
>>>>>
>>>>>
>>>> Yes, that only replies directly to the author, not the whole list.
>>>>
>>>> Anthony
>>>>
>>>>
>>>
>>>
>>
>

Reply via email to