How to prevent 404 error  in Img Src attribute

Hi everyone ,
I'm searching something like "spry:content" to be used with
image source attribute . Why i need this ?
When a spry page is first loaded , browsers try to get image
http://your_server/{image_url}".but
there is no such file and i got lots of 404 errors in w3svc logs .
Here is a simple example:
<div id="regionSolSerit" spry:region="dsSolSerit"
class="SpryHiddenRegion" >
<img alt="" style="display:none;border:0" width="165px;"
height="100px" src="{image_url}"
</div>
Waiting for solutions!

I ran into this issue myself. Here is a solution:
1) Give the image a unique id.
2) Leave the "src" blank... // this will keep you from
getting a 404 error.
3) In your javascript, write an observer like this:
Spry.Data.Region.addObserver("regionSolSerit", {
onPostUpdate: function(){ // set observer for when the thumbnail
achors get loaded
var rows = dsSolSerit.getCurrentRow(); // get the data
var daImage = document.getElementById('yourimageId');
var daImage.src = rows['image_url'];
If you want to do something like multiple images like a
thumbnail gallery, you would put a for loop in the observer and
just cylce through the urls and place them.
Hope this helps...

Similar Messages

  • How to prevent an error of [WIP work order ... is locked-]

    Hello experts
    Can someone tell me how to prevent an error which [The WIP work order associated with this transaction is currently locked and being updated by another user.  Please wait for a few seconds and try again.Transaction processor error].
    How can you prevent that error?
    P.S.
    Oracle support told me [When you make data of mtl_transaction_interface, give same transaction_header_id to all data. Then, you kick worker with appointed transaction_header_id. Or, you set up being uncompatible with workers].
    I cannot allow that making with same transaction_header_id and being uncompatible with worker on my system.

    Hi santosh,
    You can implement badi BBP_DOC_CHECK to check vendor email and issue error message.
    Kind regards,
    Yann

  • How to fix 404 Error in Flex

    When i click the button it should be open the popup So i defined the javascript as below
    function open_manifestInfo(url, target, type) { window.open(url, target, type); }
    At first time click the button, popup is working normally But next time click the button, 404 error is displayed So i have refreshed the popup it's same If i copy the url at new open the browser then it is working normally
    Therefore i want to open new browser and then execute popup How can i do that??? Thanks

    error -1
    Attempt to restore your iOS device two more times. If the issue is still unresolved, the device may need service.
    Apple advice

  • How to customize 404 error of Sun Java System Application Server Enterprise

    Hi,
    I want to customize the 404 error message in Sun Application Server Enterprise Edition8.2.
    If anyone knows the way, please help me out.
    Thanks
    Randhir

    Randhir,
    I think the documentation at the url below should help you out. If this isn't what you're looking for let me know and I'll try to dig deaper.
    http://docs.sun.com/app/docs/doc/819-4734/beagh?l=en&a=view
    Good Luck,
    John
    Edited by: m305653 on Jun 8, 2008 8:04 AM

  • Handling 404 Errors in CFMX

    Hey, all,
    I was wondering what others on the list tend to do to create
    a site-wide 404 handler (I am working on IIS servers but am equally
    interested in approaches for Apache or other servers) for CFM
    pages.
    I've tried a few things here and there within the onError
    method of Application.cfc and Application.cfm bits but am just
    curious how others approach this.
    Thanks!
    Craig

    Not sure on Apache, but on IIS you can set up a custom error
    page for a 404 error. This custom error page can be any file
    (including .cfm) that is accessible from the root of the site. So,
    if you go into iis and set a custom error for 404, you can point it
    to something like /404Handler.cfm, then create the 404Handler.cfm
    template in the root of your website. Inside this file you can do
    what ever you like, including redirecting to the home page. One of
    the nice features of how iis handles 404 errors is that the URL of
    the page that was requested will be stored in the CGI.query_string.
    For example, if a user types in
    http://www.yoursite.com/foobar.html
    and /foobar.html does not exist, the user will be forwarded to
    /404Handler.cfm and CGI.query_string will be 404;/foobar.html.
    This is a very easy way to handle friendly URLs as well. for
    example let's say you have a user table that has a username and
    useid field. Now let's also say you have a profile.cfm themplate
    that takes in the URL variable called userid, and then looks up the
    user and displays the user's profile. Using the method above, you
    can create a friendly URL like
    http://www.yoursite.com/users/username,
    however you do not create a users directory. If a user types in
    this URL he/she would normally get a 404 error, but since you
    redirected to the 404Handler.cfm, you can get the URL by saying
    <cfset target=ListLast(cgi.query_string,";")>, then check to
    see if target url contains /users (<cfif target contains
    "/users">). If it does, you can get the username by saying
    <cfset username=ListLast(target,"/")>. Once you have the
    username you can then query the database to figure out what the
    userid is and then redirect to profile.cfm. It seems a little
    convoluted, but it works.

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

  • When I use the shortcut to open a new window in safari (command N), I get a 404 error message from Google. How do I change where 'Command N' routes to?

    When I use the shortcut to open a new window in safari (command N) on my Macbook Pro, I get a 404 error message from Google. How do I change where 'Command N' routes to? 

    It's not necessary to change the Command N keystroke..
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, troubleshoot Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • How can I throw a hard 404 error to apache when a JSP is not found.

    How can I throw a hard 404 error to apache when a JSP is not found.
    I want to let apache handle the error.

    [email protected] (Jeremy Conner) wrote in
              <[email protected]>:
              >How can I throw a hard 404 error to apache when a JSP is not found.
              >I want to let apache handle the error.
              >
              >
              First thought that comes to mind is to return HTML that tells the browser
              redirect to a nonexistent file under Apache. You can't tell Apache to
              throw a 404 unless you're in a mod. Maybe something they could add to the
              proxy, but until then, I think a redirection in the response HTML is your
              only option.
              Jesse
              

  • How to prevent heap zone errors in iMovie'11

    How to prevent heap zone errors before or during a new iMovie11 project

    I read the discussion and sounds somewhat similar to how I fixed my heap zone error problem a year ago.  I was trying to be proactive before starting my next large project to see if additional info is available.
    Info on last year's project and how I corrected it: 40 min project for export to iDVD. OSX Lion, All updates installed, MACMINI lots of free HD space. I tried MANYsuggested discussion fixes available at that time, without success. Finally adopted an approach similar to that in you discussion.  Step 1: removed the latest content until an export version worked; Step 2 -  added a few minutes of content; Step 3 - exported until heap zone error reappeared; Step 4 -  repeated steps 1-3 more than 30 times until able to export the entire project without the heap zone error. A tedious process but it worked. (Note: I was new to Apple and not using Time Machine)

  • How to prevent print head clog up and B200 Error ?

    I just went through a horrid time getting rid of a B200 error due to the printer head clog up.  I had to soak the head for at least one hour in a solution of warm water  and a bit of oxy clean to get the printer to work again. I almost gave up and was at the point of buying a new printer .
    My question is :  How to prevent this from happening again especially during 2 to 3 week vacations when the printer is turned off?
    Tks

    Hi sportflyer,
    There isn't a way to prevent a B200 error.  If you do encounter the error again, it is recommended that you contact live technical support . There is NO charge for this call.  Please dial 1-866-261-9362, Monday - Friday 10:00 a.m. - 10:00 p.m. ET (excluding holidays).
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to solve the 404 error

    Hi,
    How to catch or solve the 404 error in application.
    Some time we are giving some file name but that file is not avialable at that time it will give 404 error. how to avoid this error.
    If 404 error comes i want call some other file. Is it posible.
    Thanks Advance.

    Yes, this is because IE 5.5 (?) and higher have this wacky "Show friendly HTTP error messages" setting. You can disable this by going to tools -> internet options -> advanced and unchecking "Show friendly HTTP error messages". However as the default IE setting has "Show friendly HTTP error messages" enabled this isn't a good solution.
    I believe that if your error page is less than a certain size (in bytes) then IE defaults to it's own error page when "Show friendly HTTP error messages" are enabled. This size is something like 512 bytes or fewer in length.
    So basically try making your error page larger (more than 512 bytes in size) and see if that works.

  • I get a 404 error when accessing my website which is supported by Apple.  The message says that the server can't find my page.  My browser is Safari.  How can I fix this when it just stopped working today?

    I get a 404 error when accessing my website which is supported by Apple.  The message says that the server can't find my page.  My browser is Safari.  How can I fix the problem when it failed just today?

    If you uploaded to MobileMe, it's no longer available. Apple's closed MobileMe and stopped offering web hosting.
    (116252)

  • I get a 404 error when accessing my website which is supported by Apple.  The message says that the server can't find my page.  My browser is Safari.  How can I fix this?

    I get a 404 error when accessing my website which is supported by Apple.  The message says that the server can't find my page.  My browser is Safari.  How can I fix this?

    If you uploaded to MobileMe, it's no longer available. Apple's closed MobileMe and stopped offering web hosting.
    (116252)

  • CFmail errors- how to prevent error message from user?

    Greetings
    I have an app in which the admin user sends notices to Vendors who have signed up to recieve emails when a new bid is posted.
    Even though I have "required="yes" validate="email"" at intial Vendor sign up (I think email validation is better served using Javascript, I've heard anyway) inevitably, contact emails go bad- and there are about 5000 vendors in the system.
    When a user (admin) sends the notices, if there is a mal-formed or dead email address in the DB, it dislays my default error screen even though the send transaction was successful.
    Any advice on how to prevent this?
    Thanks in advance for your help
    sakonnetweb

    <cfset thisBidID = session.bid_ID>
    <cfquery name="list_sendto" datasource="#Request.BaseDSN#">
    SELECT
    lc.contact_fname, lc.contact_lname, lc.contact_email,
    b.ReferenceNumber, b.Title, b.Description,
    jb.bid_ID, jv.vendor_ID
    FROM
    ((junction_bid_ccc jb
    LEFT
    JOIN
    junction_vendor_ccc jv
    ON
    jb.cccode_ID = jv.cccategory_ID)
    LEFT
    JOIN
    lookup_contact lc
    ON
    lc.vendor_new_ID = jv.vendor_ID)
    LEFT
    JOIN
    Bid b
    ON
    b.new_bid_ID = jb.bid_ID
    WHERE
    jb.bid_ID = #thisBidID#
    AND
    lc.contact_email <> ''
    AND
    lc.contact_email IS NOT NULL
    GROUP
    BY
    lc.vendor_new_ID, lc.contact_email, lc.contact_lname,
    lc.contact_fname, b.new_bid_ID, b.ReferenceNumber,
    b.Title,
    b.Description, jb.bid_ID, jv.vendor_ID
    </cfquery>
    <cfset thisReferenceNumber = list_sendto.ReferenceNumber>
    <cfset thisTitle = list_sendto.Title>
    <cfmail query="list_sendto" to="#contact_email#" from="[email protected]"
    subject="Bid Notification" server="emailsrv1.cityofnewport.priv"
    groupcasesensitive="no">
    <p>You are receiving this message because .... etc.

  • How can I set up a custom 404 error page on OSX Server?

    I moved my web site to a local server and changed the structure drastically.  Unfortunately I am getting hits for information that was on the old server which I haven't put back yet.  I'd like to set up a custom 404 Error Page to let people know what's up.  In server.app I can set up a 500 error page but not a 404 and when I tried hand coding it into the sites .conf file I really messed things up.  It took me a while to get that all corrected!
    Thanks for any advice,
    Bill W

    Found it!
    Under the web server Advanced Setting set "Allow overrides using .htaccess" then create an .htaccess file in the root directory with the line:
    ErrorDocument 404 notfounderror.html
    Use whatever HTML/PHP/etc. document you have created.

Maybe you are looking for

  • How to get Video Working????

    Firstly, how do i know which generation my ipod is? Secondly, i downoladed a video and when i sync my ipod, it does not go onto my ipod. Do i have to do anything first? thanks kirsty

  • InDesign cs6 crashes when exporting objects with drop shadows to interactive PDF

    I am using the trial version of InDesign CS6 on a mac OSX 10.7.4  I need to export my document as an interactive PDF. I have found that the export works fine so long as none of the objects within my document have a drop shadow. However, if I add a dr

  • How to create stack bar chart on answers that shows % and counts?

    Hello guys I currently have a table that have several columns, each column represent one product name, and one column name "units" indicating how each product is sold... The requirement is to create a chart view with stack bar that shows the percenta

  • IPhoto won't let me delete my facebook albums

    I have recently deleted both of my facebook user accounts, but the "facebook albums" I created in iPhoto are still there. How do I delete them? I have tried selecting them and pressing the delete key on my laptop, and I have tried selecting them whil

  • Multiple Drupal sites on 1 Arch server

    I have just posted this also on the wiki (https://wiki.archlinux.org/index.php/Talk:Drupal), not sure if that was a good idea but here is my problem: I wish to install multiple Drupal sites on my server so I start by doing this:     pacman -S drupal